예제 #1
0
        public void CmdAddUnit(GameObject obj, GameObject spawner)
        {
            NewSpawner newSpawner = spawner.GetComponent <NewSpawner>();

            if (newSpawner != null)
            {
                newSpawner.unitList.Add(new NewUnitStruct(obj));
                newSpawner.isUnitListEmpty = false;
            }
        }
예제 #2
0
 public void Awake()
 {
     NewSpawner.Instance = this;
 }