Exemplo n.º 1
0
 public void ActivateTether(InputAction.CallbackContext context)
 {
     if (activeTetherPoint != null)
     {
         if (rb.position.y < activeTetherPoint.transform.position.y)
         {
             IState tetherState = new PlayerTether(player);
             player.GoToState(tetherState);
         }
     }
     // Debug.Log(myState);
 }