public void PausePlayerWhileTransforming()
 {
     ThisRigidBody.velocity     = new Vector2(0, 0);
     ThisRigidBody.gravityScale = 0;
     IsTransforming             = true;
     ThisAnimator.SetBool("isTransforming", IsTransforming);
 }
예제 #2
0
 public virtual void OnDisappear(bool state = true)
 {
     ThisAnimator.SetBool("OnDisappear", state);
 }
예제 #3
0
    public virtual void OnDead(bool state = true)
    {
        m_fRemainHealth = 0.0f;

        ThisAnimator.SetBool("OnDead", state);
    }
예제 #4
0
 public virtual void OnHit(bool state = true)
 {
     ThisAnimator.SetBool("OnHit", state);
 }
예제 #5
0
 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);
 }