void Awake()
    {
        Time.timeScale = 1;
        playerStatus   = PlayerStatus.TiedToDevice;

        player_loc = player.GetComponent <PlayerLocationService>();
        newMap.GetComponent <MeshRenderer>().enabled = false;
        newMap.SetActive(false);
    }
Ejemplo n.º 2
0
    void Awake()
    {
        if (local == true)
        {
            mainMap.GetComponent <GoogleStaticMap>().setLocal(true);
        }
        else
        {
            mainMap.GetComponent <GoogleStaticMap>().setLocal(false);
        }
        Time.timeScale = 1;
        playerStatus   = PlayerStatus.TiedToDevice;

        player_loc = player.GetComponent <PlayerLocationService>();
        newMap.GetComponent <MeshRenderer>().enabled = false;
        newMap.SetActive(false);
    }
Ejemplo n.º 3
0
 //Start Location Service
 private void StartLocationService()
 {
     player_loc = FindObjectOfType <PlayerLocationService>();
     StartCoroutine(player_loc._StartLocationService());
     StartCoroutine(player_loc.RunLocationService());
 }