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