void Start() { inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>(); usedItem = GameObject.FindGameObjectWithTag("Player").GetComponent <UsedItemsTest>(); if (PlayerPrefs.GetInt("ResetGame") == 1) { ResetInventory(); } else { CheckItem(); } }
void Start() { usedItem = GameObject.FindGameObjectWithTag("Player").GetComponent <UsedItemsTest>(); CheckActiveItems(); }
void Start() { inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>(); usedItem = GameObject.FindGameObjectWithTag("Player").GetComponent <UsedItemsTest>(); CheckItem(); }