private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Terrain") || other.gameObject.CompareTag("Enemy")) { GroundCollide.Invoke(); } }
public static void restartTower() { for (int x = 0; x < blkLayers.Count; x++) { Destroy(blkLayers [x].gameObject); } blkLayers = new List <Transform> (); setUpDone = false; startTime = Time.time; i = 0; GameState.restart(); GroundCollide.restart(); }