public bool ShootMainGun() { if (reloaderMain.Ready) { reloaderMain.Shot(); Instantiate(MainСartridge, MainGun.position, QZRotation(0)) .tag = tag; return(true); } else { return(false); } }
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); } }