Esempio n. 1
0
 void Start()
 {
     QualitySettings.SetQualityLevel(1);
     GetComponent <Canvas> ().enabled           = false;
     GetComponent <GraphicRaycaster> ().enabled = false;
     AuxServer       = GameObject.Find("Server").GetComponent <Server> ();
     AuxTempoPartida = GameObject.Find("TempoPartida").GetComponent <TempoPartida> ();
     AuxCarregarCena = GameObject.Find("CarregarNovaCena").GetComponent <CarregarCena> ();
 }
 void Start()
 {
     if (PhotonNetwork.connectionStateDetailed == ClientState.Joined && GetComponent <PhotonView>().isMine == false)
     {
         return;
     }
     AuxClick        = GameObject.Find("HUD").GetComponent <Click> ();
     AuxServer       = GameObject.Find("Server").GetComponent <Server> ();
     AuxTempoPartida = GameObject.Find("TempoPartida").GetComponent <TempoPartida> ();
 }
Esempio n. 3
0
 void Start()
 {
     AuxCameraAlvo   = GameObject.Find("CameraPrincipal").GetComponent <CameraAlvo> ();
     AuxSpawnMoedas  = GameObject.Find("LocaisInstMoedas").GetComponent <SpawnMoedas> ();
     AuxTempoPartida = GameObject.Find("TempoPartida").GetComponent <TempoPartida> ();
     if (Application.internetReachability != NetworkReachability.NotReachable)
     {
         Conectar();
     }
     else
     {
         PhotonNetwork.offlineMode = true;
         Conectar();
     }
 }