Exemple #1
0
 private void OnDrop(InputValue value)
 {
     if (hasTool)
     {
         if (PlayerSprite.flipX)
         {
             _tool.SetPosition(new Vector2(transform.position.x - 3f, transform.position.y));
         }
         else
         {
             _tool.SetPosition(new Vector2(transform.position.x + 3f, transform.position.y));
         }
         hasTool = false;
         _tool   = null;
     }
 }