public void PausePlayerWhileTransforming() { ThisRigidBody.velocity = new Vector2(0, 0); ThisRigidBody.gravityScale = 0; IsTransforming = true; ThisAnimator.SetBool("isTransforming", IsTransforming); }
public virtual void OnDisappear(bool state = true) { ThisAnimator.SetBool("OnDisappear", state); }
public virtual void OnDead(bool state = true) { m_fRemainHealth = 0.0f; ThisAnimator.SetBool("OnDead", state); }
public virtual void OnHit(bool state = true) { ThisAnimator.SetBool("OnHit", state); }
public virtual void OnAttack(bool state = true) { ThisAnimator.SetBool("OnAttack", state); }
private void setIsBlocking(bool value) { IsBlocking = value; ThisAnimator.SetBool("block", IsBlocking); }
//Tell the animator the current state of the double jump private void doubleJumpState() { //If he can double jump then tell animator that he currently isn't double jumping ThisAnimator.SetBool("inDoubleJump", !canDoubleJump); }
public void ResumePlayerAfterTransformation() { ThisRigidBody.gravityScale = initialGravityScale; IsTransforming = false; ThisAnimator.SetBool("isTransforming", IsTransforming); }