Exemple #1
0
 void ThrowLeft()
 {
     if (LeftGun_object != null)
     {
         if (this.gameObject.CompareTag("TopPlayer"))
         {
             LeftGun_object.pass_the_gun(1);
             LeftGun_object = null;
         }
         else
         {
             LeftGun_object.pass_the_gun(0);
             LeftGun_object = null;
         }
     }
 }
Exemple #2
0
 void ThrowRight()
 {
     if (RightGun_object != null)
     {
         if (this.gameObject.CompareTag("TopPlayer"))
         {
             RightGun_object.pass_the_gun(1);
             RightGun_object = null;
         }
         else
         {
             RightGun_object.pass_the_gun(0);
             RightGun_object = null;
         }
     }
 }