コード例 #1
0
 private void GetSelectedInventoryItemAction()
 {
     if (selectedInventoryItem == null)
     {
         Debug.LogWarning("NO ITEM WAS SELECTED BUT ACTION WAS USED");
         return;
     }
     else
     {
         selectedInventoryItem.Action();
     }
 }