NullReferenceException: Object reference not set to an instance of an object
UnitSelectedVisual.Start () (at Assets/Scripts/UnitSelectedVisual.cs:19)
This is the code at line 19
private void Start()
{
UnitActionSystem.Instance.OnSelectedUnitChanged +=UnitActionSystem_OnSelectedUnitChanged;
UpdateVisual();
}
Any Ideas would help. I watch the videos twice. Couldn’t find anything wrong.