Exemplo n.º 1
0
    }//PlayCritDamaged

    public virtual void PlayDeath()
    {
        int triggerIndex = Random.Range(0, this.Props.DieTrigger.Length);

        AnimatorCmp?.SetTrigger(this.Props.DieTrigger[triggerIndex]);
        AnimatorCmp?.SetBool(Props.Died, true);
    }//PlayDeath
Exemplo n.º 2
0
 public void TakeCritDamage(GameObject instigator, int amount)
 {
     this.PlayCritDamaged();
     AnimatorCmp?.SetBool("HadCrit", true);
 }
Exemplo n.º 3
0
    }//SetWalking

    public void SetIdle(bool state)
    {
        AnimatorCmp?.SetBool(Props.Walking, !state);
        AnimatorCmp?.SetBool(Props.Idle, state);
    }//SetWalking
Exemplo n.º 4
0
    }//SetVelocity


    public virtual void SetGrounded(bool state) {
        if (AnimatorCmp == null)
            return;
        AnimatorCmp.SetBool(this.Props.IsGrounded, state);
    }//SetVelocity
Exemplo n.º 5
0
    }//velocityUpdateInvoke


    private void onWallStateInvoke(WallGrab wallJumpCmp) {
        if (AnimatorCmp == null)
            return;
        AnimatorCmp.SetBool(this.Props.OnWall, wallJumpCmp.IsOnWall);
    }//onWallStateInvoke
Exemplo n.º 6
0
    }//SetVelocity


    public virtual void SetDashing(bool state) {
        if (AnimatorCmp == null)
            return;
        AnimatorCmp.SetBool(this.Props.Dashing, state);
    }//SetVelocity