protected void ShotBullet(JIBulletController bullet, IEnumerator bulletMoveRoutine) { if (bullet == null) { return; } bullet.Shot(bulletMoveRoutine); }
// Different from ShotBullet Method(in UbhBaseShot Class), it just care about bullet angle and speed private void ShotChildBullet(JIBulletController bullet, float speed, float angle) { if (bullet == null) { return; } bullet.Shot(speed, angle, 0, 0, false, null, 0, 0, false, 0, 0, false, 0, 0); }
/// <summary> /// Shot JIBulletController object. /// </summary> protected void ShotBullet(JIBulletController bullet, float speed, float angle, bool homing = false, Transform homingTarget = null, float homingAngleSpeed = 0f, float maxHomingAngle = 0f, bool wave = false, float waveSpeed = 0f, float waveRangeSize = 0f) { if (bullet == null) { return; } bullet.Shot(speed, angle, m_angleSpeed, m_accelerationSpeed, homing, homingTarget, homingAngleSpeed, maxHomingAngle, wave, waveSpeed, waveRangeSize, m_usePauseAndResume, m_pauseTime, m_resumeTime); }