예제 #1
0
 public void GiveToNPC()
 {
     if (player.collided_npc != null)
     {
         player.StartNpcDialogue(player.collided_npc.itemRecivedNode);
         InvenUI.GetInstance().RemoveItem(player.collided_npc.inventoryIndex);
     }
 }
예제 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }