void Awake() { Time.timeScale = 1; playerStatus = PlayerStatus.TiedToDevice; player_loc = player.GetComponent <PlayerLocationService>(); newMap.GetComponent <MeshRenderer>().enabled = false; newMap.SetActive(false); }
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); }
//Start Location Service private void StartLocationService() { player_loc = FindObjectOfType <PlayerLocationService>(); StartCoroutine(player_loc._StartLocationService()); StartCoroutine(player_loc.RunLocationService()); }