private void Update() { MouseFunction(); SelectObjects(); playerUnits.SetStartingUnits(GameObject.FindGameObjectsWithTag("PlayerUnit")); RTS.GeneralManagerFunctions.SetSceneManager(manager); manager = GameObject.Find("SceneManager").GetComponent <SceneManager>(); }
private void InitializePlayerUnits() { playerUnits = new PlayerUnits(); selectedUnits = new List <GameObject>(); playerUnits.SetStartingUnits(GameObject.FindGameObjectsWithTag("PlayerUnit")); }