}//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
public void TakeCritDamage(GameObject instigator, int amount) { this.PlayCritDamaged(); AnimatorCmp?.SetBool("HadCrit", true); }
}//SetWalking public void SetIdle(bool state) { AnimatorCmp?.SetBool(Props.Walking, !state); AnimatorCmp?.SetBool(Props.Idle, state); }//SetWalking
}//SetVelocity public virtual void SetGrounded(bool state) { if (AnimatorCmp == null) return; AnimatorCmp.SetBool(this.Props.IsGrounded, state); }//SetVelocity
}//velocityUpdateInvoke private void onWallStateInvoke(WallGrab wallJumpCmp) { if (AnimatorCmp == null) return; AnimatorCmp.SetBool(this.Props.OnWall, wallJumpCmp.IsOnWall); }//onWallStateInvoke
}//SetVelocity public virtual void SetDashing(bool state) { if (AnimatorCmp == null) return; AnimatorCmp.SetBool(this.Props.Dashing, state); }//SetVelocity