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;
        }
예제 #2
0
 protected void doInitialization()
 {
     // dynamically find the player's inventory
     inventory = GameObject.FindWithTag("Inventory").GetComponent <MystInventory>();
 }