void specialShot() { WPbullet newBullet = Instantiate(currentBullet, spawnPoint.position, spawnPoint.transform.rotation); newBullet.passDirection(direction); Ammo--; if (Ammo <= 0) { changeBullet(ammonation); } }
public void specialShoot() { WPbullet newBullet = Instantiate(currentBullet, spawnPoint.position, spawnPoint.transform.rotation); newBullet.passDirection(p, direction); specialBullet--; if (specialBullet <= 0) { specialBullet = 0; bulletSpawning = shoot; currentBullet = weaponBullet; if (p.getCanvas() == null) { return; } p.getCanvas().resetIngredientImage(); } }
//ディフォルトの無限バレット public void NormalShot() { WPbullet newBullet = Instantiate(weaponBullet, spawnPoint.position, spawnPoint.transform.rotation); newBullet.passDirection(direction); }
void shoot() { WPbullet newBullet = Instantiate(currentBullet, spawnPoint.position, spawnPoint.transform.rotation); newBullet.passDirection(p, direction); }