public void OnEnter() { elapsed = 0.0f; agent.enabled = false; rBody.AddExplosionForce(chargingAttack.explosionForce * 1.5f, player.position, 5.0f, chargingAttack.upwardsModifier, ForceMode.VelocityChange); chargingAttack.Disable(); }
protected override void OnEnable() { chargingAttack.Disable(); base.OnEnable(); }