Exemplo n.º 1
0
    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();

    }
Exemplo n.º 2
0
 protected override void OnEnable()
 {
     chargingAttack.Disable();
     base.OnEnable();
 }