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