public void Update() { if (Input.GetKeyDown(KeyCode.A)) { m_SpawnerNPC.SpawnVillagers(); } }
public void Update() { if (Input.GetKeyDown(KeyCode.S)) { spawner.SpawnVillagers(); } }
public void Update() { if (Input.GetKeyDown(KeyCode.S)) { newSpawnerNPC.SpawnVillagers(); } if (Input.GetKeyDown(KeyCode.D)) { mSpawn = mSpawner.SpawnEnemy(mSniper); mSpawn.name = "SniperClone_" + ++mIncrementorSniper; mSpawn.transform.Translate(Vector3.forward * mIncrementorSniper * 1.5f); } }