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