public void INITIALIZING(B_Player play) { p = play; p.BULLETSPAWNER = this; direction = transform.forward; bulletSpawning = shoot; currentBullet = weaponBullet; }
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 changeToSpecialShoot(int value, WPbullet bullet) { currentBullet = bullet; specialBullet = value; bulletSpawning = specialShoot; }