private IEnumerator FireRightAngleBulletsImpl(int countOfWaves) { for (int i = 0; i < countOfWaves; ++i) { for (int j = 0; j < 21; j++) { CircleBulletArg arg = new CircleBulletArg(j - 10, 0, false); arg.seqNum = j - 10; bulletsPond.getCircleBullet(arg).transform.position = bulletSlot.position; } yield return(new WaitForSeconds(0.5f)); } }
void Fire() { if (bulletType == BulletType.CIRCLE_BULLET) { CircleBulletArg arg = new CircleBulletArg(-1, 5, true); bulletsPond.getCircleBullet(arg).transform.position = weaponSlot.position; arg.seqNum = 1; bulletsPond.getCircleBullet(arg).transform.position = weaponSlot.position; } else { bulletsPond.getLazerBullet().transform.position = weaponSlot.position; } }