Exemplo n.º 1
0
 public override void MouseUp(MouseInputManager.MouseButton btn, MouseInputManager.MousePointer mouse, Interactable echo = null)
 {
     if (btn.Equals(MouseInputManager.MouseButton.LEFT_BUTTON))
     {
         isDown = false;
         if (downDone)
         {
             Manager.GetInstance().PlayByDistance("Play_tree_move", transform, false);
             base.MouseUp(btn, mouse, echo);
             downDone = false;
         }
         else
         {
             if (CurrentSpot is TeleportSpot)
             {
                 return;
             }
             if (!squirrel)
             {
                 FouilleTree();
             }
             else
             {
                 if (gameObject.tag == "Hiver")
                 {
                     squirrel.Progress++;
                 }
                 else
                 {
                     squirrel.NextJump();
                 }
             }
         }
     }
 }