Ejemplo 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
Ejemplo n.º 2
0
 public void TakeCritDamage(GameObject instigator, int amount)
 {
     this.PlayCritDamaged();
     AnimatorCmp?.SetBool("HadCrit", true);
 }
Ejemplo n.º 3
0
    }//SetWalking

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


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


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


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