public void OpeningChest(Chest_Content chestContent) { animator.SetBool("isOpen", true); actualChest = chestContent; chestMonney = chestContent.monneyIn; monneyInChest.text = "Monney: " + chestMonney; }
public void CloseChest(Chest_Content chestContent) { animator.SetBool("isOpen", false); chestContent.monneyIn = chestMonney; }