コード例 #1
0
ファイル: PowerBlock.cs プロジェクト: Futurehan/TetrisGods
 private void OnTriggerEnter(Collider other)
 {
     if (other != null)
     {
         IPowerUp cannon = other.GetComponentInChildren <IPowerUp>();
         if (cannon != null)
         {
             cannon.Shoot();
             cannon = null;
         }
     }
 }