protected void doInitialization() { // find the inventory object dynamically inventory = GameObject.FindWithTag("Inventory").GetComponent <MystInventory>(); // we have to use the string, as the object might be destroyed during gameplay requireString = required.name; }
protected void doInitialization() { // dynamically find the player's inventory inventory = GameObject.FindWithTag("Inventory").GetComponent <MystInventory>(); }