示例#1
0
    // 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>();
    }
示例#2
0
    public void AddScore()
    {
        score += 100;

#if UNITY_ANDROID
        if (score == 1000)
        {
            GPSManager.Get().UnlockAchievement1000();
        }

        if (score == 2000)
        {
            GPSManager.Get().UnlockAchievement2000();
        }
#endif
    }