Пример #1
0
  private void OnLineClick(InventoryItem item)
  {
    Debug.LogFormat("On line click:{0}", item.name);

    if (item.kind == InventoryItemKind.HealthPotion)
    {
      if (SM.Hp >= 1)
        return;

      SM.FillHp();
      Inventory.Remove(item.name);
      return;
    }


  }