private void GatherComponents() { dialogueManager = GetComponent <DialogueManager>(); windowCloser = GetComponent <CloseOpenWindows>(); playerWallet = GetComponent <PlayerWallet>(); playerManager = GetComponent <PlayerManager>(); unitReactionManager = GetComponent <UnitReactionManager>(); }
private void Start() { slot = GetComponentInParent <InventorySlot>(); windowCloser = ScriptToolbox.GetInstance().GetWindowCloser(); }