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>();
 }
Exemplo n.º 3
0
 void Start()
 {
     canvas          = FindObjectOfType <Canvas>();
     hubChest        = GetComponent <Inventory>();
     player          = GetComponent <Player>();
     followCamera    = GameObject.Find("Main Camera").GetComponent <CameraController>();
     interactableGUI = Resources.FindObjectsOfTypeAll <InteractableGUI>()[0];
 }
Exemplo n.º 4
0
 public void Awake()
 {
     dialogBox       = Resources.FindObjectsOfTypeAll <DialogBox>()[0];
     player          = FindObjectOfType <Player>();
     gameManager     = FindObjectOfType <GameManager>();
     hubManager      = FindObjectOfType <HubManager>();
     interactableGUI = Resources.FindObjectsOfTypeAll <InteractableGUI>()[0];
 }
Exemplo n.º 5
0
 private void Awake()
 {
     interactableGUI = FindObjectOfType <InteractableGUI>();
     player          = FindObjectOfType <Player>();
     levelManager    = FindObjectOfType <LevelManager>();
 }