Exemplo n.º 1
0
 void Awake()
 {
     portalGUI       = FindObjectOfType <PortalGUI>();
     interactableGUI = FindObjectOfType <InteractableGUI>();
     player          = FindObjectOfType <Player>();
     levelManager    = FindObjectOfType <LevelManager>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     portalGUI       = Resources.FindObjectsOfTypeAll <PortalGUI>()[0];
     interactableGUI = Resources.FindObjectsOfTypeAll <InteractableGUI>()[0];
     player          = FindObjectOfType <Player>();
     levelManager    = FindObjectOfType <GameManager>();
 }