//--------------------------------------
    // Events
    //--------------------------------------

    private void OnServiceConnected()
    {
        if (_IsDataLoaded || _DataEventsCount <= 0)
        {
            _IsDataLoaded = true;
            OnAllLoaded();
            return;
        }


        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            if (UltimateMobileSettings.Instance.AutoLoadAchievementsInfo)
            {
                GameCenterManager.LoadAchievements();
            }

            if (UltimateMobileSettings.Instance.AutoLoadLeaderboardsInfo)
            {
                foreach (UM_Leaderboard leaderboard in UltimateMobileSettings.Instance.Leaderboards)
                {
                    GameCenterManager.LoadLeaderboardInfo(leaderboard.IOSId);
                }
            }

            break;

        case RuntimePlatform.Android:
            if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon)
            {
                Debug.Log("Start To Load Amazon Player");
                SA_AmazonGameCircleManager.Instance.RetrieveLocalPlayer();

                if (UltimateMobileSettings.Instance.AutoLoadAchievementsInfo)
                {
                    SA_AmazonGameCircleManager.Instance.RequestAchievements();
                }

                if (UltimateMobileSettings.Instance.AutoLoadLeaderboardsInfo)
                {
                    SA_AmazonGameCircleManager.Instance.RequestLeaderboards();
                }
            }
            else
            {
                if (UltimateMobileSettings.Instance.AutoLoadAchievementsInfo)
                {
                    GooglePlayManager.Instance.LoadAchievements();
                }

                if (UltimateMobileSettings.Instance.AutoLoadLeaderboardsInfo)
                {
                    GooglePlayManager.Instance.LoadLeaderBoards();
                }
            }
            break;
        }
    }
    //--------------------------------------
    // Achievements
    //--------------------------------------



    public void LoadAchievementsInfo()
    {
        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            GameCenterManager.LoadAchievements();
            break;

        case RuntimePlatform.Android:
            GooglePlayManager.Instance.LoadAchievements();
            break;
        }
    }
    //--------------------------------------
    // Events
    //--------------------------------------

    private void OnServiceConnected()
    {
        if (_IsDataLoaded || _DataEventsCount <= 0)
        {
            _IsDataLoaded = true;
            OnAllLoaded();
            return;
        }


        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            if (UltimateMobileSettings.Instance.AutoLoadAchievementsInfo)
            {
                GameCenterManager.LoadAchievements();
            }

            if (UltimateMobileSettings.Instance.AutoLoadLeaderboardsInfo)
            {
                foreach (UM_Leaderboard leaderboard in UltimateMobileSettings.Instance.Leaderboards)
                {
                    GameCenterManager.LoadLeaderboardInfo(leaderboard.IOSId);
                }
            }

            break;

        case RuntimePlatform.Android:

            if (UltimateMobileSettings.Instance.AutoLoadAchievementsInfo)
            {
                GooglePlayManager.Instance.LoadAchievements();
            }

            if (UltimateMobileSettings.Instance.AutoLoadLeaderboardsInfo)
            {
                GooglePlayManager.Instance.LoadLeaderBoards();
            }

            break;
        }
    }
    //--------------------------------------
    // Achievements
    //--------------------------------------



    public void LoadAchievementsInfo()
    {
        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            GameCenterManager.LoadAchievements();
            break;

        case RuntimePlatform.Android:
            if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon)
            {
                SA_AmazonGameCircleManager.Instance.RequestAchievements();
            }
            else
            {
                GooglePlayManager.Instance.LoadAchievements();
            }
            break;
        }
    }