I get this error: Assets/Scripts/Core/ActionScheduler.cs(7,9): error CS0246: The type or namespace name ‘Monobehaviour’ could not be found (are you missing a using directive or an assembly reference?)
my code:
using UnityEngine;
namespace RPG.Core
{
public class ActionScheduler : MonoBehaviour
{
Monobehaviour currentAction;
public void StartAction(MonoBehaviour action)
{
print("Cancelling" + currentAction);
currentAction = action;
}
}
}