public void UpdateState()
    {
        Transition();
        player.Look(player.targetObject);
        player.Move();
        if (player.carrying)
        {
            if (player.CheckThrow())
            {
                return;
            }
            if (player.CheckDrop())
            {
                return;
            }

            if (player.carriedObject.layer == 11)
            {
                player.Platform(player.carriedObject);
            }
            else
            {
                player.Carry(player.carriedObject);
            }
        }
        else
        {
            player.CheckInteraction();
        }
    }
 public void UpdateState()
 {
     Transition();
     player.Look();
     player.Move();
     if (player.carrying)
     {
         if (player.CheckThrow())
         {
             return;
         }
         if (player.CheckDrop())
         {
             return;
         }
         player.Carry(player.carriedObject);
     }
     else
     {
         player.CheckInteraction();
     }
 }