public void UpdateQuickSlots() { InventoryManagerNew im = dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>(); foreach (InventoryQuickSlot slot in allQuickSlots) { if (im.HasItem(slot.id) == false) { slot.RemoveFromSlot(); } } }
void Start() { invMg = dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>(); }
void Awake() { invMg = (invMg == null) ? dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>() : invMg; }
void Start() { inventoryManager = GetComponent <InventoryManagerNew>(); objectiveManager = GetComponent <ObjectiveManager>(); transitionManager = GetComponent <TransitionManager>(); }