// Start is called before the first frame update void Start() { #if UNITY_ANDROID GPSManager.Get().SignIn(); #endif playerGO = GameObject.FindGameObjectWithTag("Player"); playerScript = playerGO.GetComponentInChildren <PlayerController>(); }
public void AddScore() { score += 100; #if UNITY_ANDROID if (score == 1000) { GPSManager.Get().UnlockAchievement1000(); } if (score == 2000) { GPSManager.Get().UnlockAchievement2000(); } #endif }