コード例 #1
0
ファイル: ButtShield.cs プロジェクト: MikeSweeny/BumperButts
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Car"))
     {
         if (AIScript = other.gameObject.GetComponent <AIController>())
         {
             //AIScript.currentPowerup = null;
         }
         if (CarScript = other.gameObject.GetComponent <CarController>())
         {
             CarScript.GoFlying();
         }
     }
 }