public override void Interact() { if (pcFunctions == null) { pcFunctions = FindObjectOfType <HomePCInteractions>(); } if (currentPC == null) { currentPC = pcFunctions.gameObject.GetComponent <Interactivity>(); } currentPC.OpenMenu(); }
private void Start() { pcFunctions = FindObjectOfType <HomePCInteractions>(); currentPC = pcFunctions.gameObject.GetComponent <Interactivity>(); }