Im getting this error “Assets\Scripts\UnitActionSystem.cs(8,29): error CS0246: The type or namespace name ‘Unit’ could not be found (are you missing a using directive or an assembly reference?)” i have no clue how to fix it. i also cant add the Unit script to unit action system
Make sure that your Unit script is Unit.cs, and that the class declaration is
public class Unit : MonoBehaviour
Case matters, so
public class unit : MonoBehaviour
won’t match in UnitActionSystem, and the name of the script (Unit) must match the name of the class exactly (again, case matters).
If that doesn’t do the trick, paste in your Unit.cs and UnitActionSystem scripts and we’ll take a look.