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