Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
0
 public void Awake()
 {
     NewSpawner.Instance = this;
 }