Exemple #1
0
    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();
 }
Exemple #3
0
 void Start()
 {
     inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>();
     usedItem      = GameObject.FindGameObjectWithTag("Player").GetComponent <UsedItemsTest>();
     CheckItem();
 }