Exemplo n.º 1
0
    //--------------------------------------
    // PUBLIC METHODS
    //--------------------------------------

    public void LoadEvents()
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }
        AN_GMSQuestsEventsProxy.loadEvents();
    }
Exemplo n.º 2
0
 public void ResetAllAchievements()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.ResetAllAchievements();
 }
 public void AcceptQuest(string id)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSQuestsEventsProxy.acceptQuest(id);
 }
Exemplo n.º 4
0
 public void UnlockAchievementById(string achievementId)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.reportAchievementById(achievementId);
 }
Exemplo n.º 5
0
 public void SetStepsImmediate(string achievementId, int numsteps)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.setStepsImmediate(achievementId, numsteps.ToString());
 }
Exemplo n.º 6
0
 public void ShowLeaderBoardById(string leaderboardId)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.showLeaderBoardById(leaderboardId);
 }
Exemplo n.º 7
0
 public void LoadLeaderBoards()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.loadLeaderBoards();
 }
Exemplo n.º 8
0
 public void incrementAchievementById(string achievementId, int numsteps)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.incrementAchievementById(achievementId, numsteps.ToString());
 }
Exemplo n.º 9
0
    //--------------------------------------
    // PUBLIC API CALL METHODS
    //--------------------------------------



    public void showAchivmentsUI()
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }
        AndroidNative.showAchivmentsUI();
    }
Exemplo n.º 10
0
 public void reportAchievement(string achievementName)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.reportAchievement(achievementName);
 }
Exemplo n.º 11
0
 public void revealAchievementById(string achievementId)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.revealAchievementById(achievementId);
 }
Exemplo n.º 12
0
 public void loadLeaderBoards()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.loadLeaderBoards();
 }
Exemplo n.º 13
0
 public void UpdatePlayerScore(string leaderboardId, GPBoardTimeSpan span, GPCollectionType collection)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.UpdatePlayerScore(leaderboardId, (int)span, (int)collection);
 }
Exemplo n.º 14
0
 public void SumbitEvent(string eventId, int count)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSQuestsEventsProxy.sumbitEvent(eventId, count);
 }
Exemplo n.º 15
0
 public void ShowAchievementsUI()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.showAchievementsUI();
 }
Exemplo n.º 16
0
 public void showLeaderBoardsUI()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.showLeaderBoardsUI();
 }
Exemplo n.º 17
0
 public void ShowLeaderBoardsUI()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.showLeaderBoardsUI();
 }
Exemplo n.º 18
0
 public void showLeaderBoardsUI(string leaderboardId)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.showLeaderBoardById(leaderboardId);
 }
Exemplo n.º 19
0
 public void SubmitScoreById(string leaderboardId, long score)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.submitScoreById(leaderboardId, score);
 }
Exemplo n.º 20
0
 public void loadPlayer()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.loadPlayer();
 }
Exemplo n.º 21
0
 public void LoadTopScores(string leaderboardId, GPBoardTimeSpan span, GPCollectionType collection, int maxResults)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.loadTopScores(leaderboardId, (int)span, (int)collection, maxResults);
 }
Exemplo n.º 22
0
 public void submitScore(string leaderboardName, int score)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AndroidNative.submitScore(leaderboardName, score);
 }
Exemplo n.º 23
0
 public void IncrementAchievementById(string achievementId, int numsteps)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.incrementAchievementById(achievementId, numsteps.ToString());
 }
Exemplo n.º 24
0
 public void LoadFriends()
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.loadConnectedPlayers();
 }
Exemplo n.º 25
0
 public void ResetAchievement(string achievementId)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.resetAchievement(achievementId);
 }
Exemplo n.º 26
0
 public void revealAchievement(string achievementName)
 {
     if (!GooglePlayConnection.CheckState())
     {
         return;
     }
     AN_GMSGeneralProxy.revealAchievement(achievementName);
 }
Exemplo n.º 27
0
    //--------------------------------------
    // PUBLIC API CALL METHODS
    //--------------------------------------

    public void ShowSavedGamesUI(string title, int maxNumberOfSavedGamesToShow)
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }

        AN_GMSGeneralProxy.ShowSavedGamesUI_Bridge(title, maxNumberOfSavedGamesToShow);
    }
Exemplo n.º 28
0
    public void ShowRequestsAccepDialog()
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }

        AN_GMSGiftsProxy.showRequestAccepDialog();
    }
    //--------------------------------------
    // PUBLIC API CALL METHODS
    //--------------------------------------

    public void ShowSavedGamesUI(string title, int maxNumberOfSavedGamesToShow, bool allowAddButton = true, bool allowDelete = true)
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }

        AN_GMSGeneralProxy.ShowSavedGamesUI_Bridge(title, maxNumberOfSavedGamesToShow, allowAddButton, allowDelete);
    }
Exemplo n.º 30
0
    public void clearDefaultAccount()
    {
        if (!GooglePlayConnection.CheckState())
        {
            return;
        }

        AN_GMSGeneralProxy.clearDefaultAccount();
        GooglePlayConnection.instance.disconnect();
    }