public void WallGrab() { if (CheckWall.med(transfrom.position)) { ownerState.stateMachine.TransitionTo(ownerState.GetComponent <ClimbingState>()); return; } }
public void UpdateAct() { if (!CheckWall.med(ownerState.transform.position)) { ownerState.stateMachine.TransitionTo(targ.GetState()); rigid.velocity.Scale(new Vector2(0.2f, 1)); return; } }