예제 #1
0
 public void ClearInventory()
 {
     inventorySystem.ClearInventory();
     for (int i = 0; i < transform.childCount; i++)
     {
         var image = transform.GetChild(i).GetComponent <Image>();
         image.sprite = null;
         image.color  = Color.clear;
     }
     PrintInventory();
 }