protected override float GetAtkMotionTime() { ChargeBulletController chargeBulletController = bullet.GetComponent <ChargeBulletController>(); float time = chargeBulletController.GetMaxChargeTime() + bitMoveTime; return((time >= 0) ? time : 0); }
//チャージ弾丸強化実行 protected override void BulletCustomExe(BulletController bulletCtrl, int customSystem, float effectValue) { ChargeBulletController chargeBulletCtrl = bulletCtrl.transform.GetComponent <ChargeBulletController>(); switch (customSystem) { case CUSTOM_SYSTEM_CHARGE_TIME: chargeBulletCtrl.CustomChargeTime(effectValue); break; case CUSTOM_SYSTEM_CHARGE_SPEED_RATE: chargeBulletCtrl.CustomSpeedRate(effectValue); break; case CUSTOM_SYSTEM_CHARGE_DAMAGE_RATE: chargeBulletCtrl.CustomDamageRate(effectValue); break; case CUSTOM_SYSTEM_CHARGE_SIZE_RATE: chargeBulletCtrl.CustomSizeRate(effectValue); break; case CUSTOM_SYSTEM_CHARGE_LIMIT_TIME: chargeBulletCtrl.CustomLimitTime(effectValue); break; default: base.BulletCustomExe(bulletCtrl, customSystem, effectValue); break; } }