Пример #1
0
 public bool ShootMainGun()
 {
     if (reloaderMain.Ready)
     {
         reloaderMain.Shot();
         Instantiate(MainСartridge,
                     MainGun.position, QZRotation(0))
         .tag = tag;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public bool ShootExtraGun()
 {
     if (reloaderExtra.Ready)
     {
         reloaderExtra.Shot();
         Instantiate(ExtraСartridge,
                     ExtraGun1.position, QZRotation(+45))
         .tag = tag;
         Instantiate(ExtraСartridge,
                     ExtraGun2.position, QZRotation(-45))
         .tag = tag;
         return(true);
     }
     else
     {
         return(false);
     }
 }