void Start() { unitFactoryManager = GetComponent <UnitFactoryManager>(); battleGroundManager = GetComponent <BattleGroundManager>(); activeUnitManager = GetComponent <ActiveUnitManager>(); uiController = GetComponent <UIController>(); //Subject-Observer activeUnitManager.Register(this); }