コード例 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Terrain") || other.gameObject.CompareTag("Enemy"))
     {
         GroundCollide.Invoke();
     }
 }
コード例 #2
0
 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();
 }