Пример #1
0
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     base.OnStateExit(animator, stateInfo, layerIndex);
     //RoleController.transform.position = new Vector3(RoleController.FirstClimbPos.x, RoleController.FirstClimbPos.y, RoleController.transform.position.z);
     RoleController.Closejock();
     //RoleController.IsHovering = false;
 }
Пример #2
0
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     base.OnStateExit(animator, stateInfo, layerIndex);
     //RoleController.transform.position = new Vector3(RoleController.FirstClimbPos.x, RoleController.FirstClimbPos.y, RoleController.transform.position.z);
     RoleController.Closejock();
     //RoleController.IsHovering = false;
     RoleController.CollisionState   = RoleCollisionState.Default;
     RoleController.gameObject.layer = LayerMask.NameToLayer("Role");
     RoleController.canClimbLadder   = true;
 }
Пример #3
0
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     base.OnStateEnter(animator, stateInfo, layerIndex);
     //RoleController.IsHovering = true;
     RoleController.Closejock();
 }
Пример #4
0
 public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     base.OnStateUpdate(animator, stateInfo, layerIndex);
     RoleController.Closejock();
     //RoleController.gameObject.layer = LayerMask.NameToLayer("Default");
 }