/// <param name="Climb-Up">1</param> //// <param name="Climb-Down">2</param> //// <param name="Climb-Off-Top">3</param> //// <param name="Climb-Off-Bottom">4</param> //// <param name="Climb-On-Top">5</param> //// <param name="Climb-On-Bottom">6</param> private void Climbing() { if (rpgCharacterController.rpgCharacterMovementController.rpgCharacterState != RPGCharacterState.ClimbLadder && rpgCharacterController.isNearLadder) { if (GUI.Button(new Rect(640, 360, 100, 30), "Climb Ladder")) { StartCoroutine(rpgCharacterController._ClimbLadder()); } } if (rpgCharacterController.rpgCharacterMovementController.rpgCharacterState == RPGCharacterState.ClimbLadder) { if (GUI.Button(new Rect(130, 200, 100, 30), "Climb Off Top")) { rpgCharacterController.animator.SetInteger("Action", 3); rpgCharacterController.animator.SetTrigger("ClimbLadderTrigger"); StartCoroutine(rpgCharacterController._EndClimbingLadder(2)); } if (GUI.Button(new Rect(130, 235, 100, 30), "Climb Up")) { rpgCharacterController.animator.SetInteger("Action", 1); rpgCharacterController.animator.SetTrigger("ClimbLadderTrigger"); } if (GUI.Button(new Rect(130, 270, 100, 30), "Climb Down")) { rpgCharacterController.animator.SetInteger("Action", 2); rpgCharacterController.animator.SetTrigger("ClimbLadderTrigger"); } if (rpgCharacterMovementController.MaintainingGround()) { if (GUI.Button(new Rect(130, 305, 100, 30), "Climb Off Bottom")) { rpgCharacterController.animator.SetInteger("Action", 4); rpgCharacterController.animator.SetTrigger("ClimbLadderTrigger"); StartCoroutine(rpgCharacterController._EndClimbingLadder(1)); } } } }