Esempio n. 1
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("more than one instance of inventory found");
         return;
     }
     instance = this;
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     inventaireScript = Inventaire_Script.instance;
     inventaireScript.onItemChangedCallBack += Update_UI;
     slots = item_parent.GetComponentsInChildren <Inventaire_Slot>();
 }