// Use this for initialization void Start() { play.onClick.AddListener(() => { BoostOnYAxis(); GameStateManager.GameState = GameState.Playing; IntroGUI.SetActive(false); ScoreManagerScript.score.gameObject.SetActive(true); }); LeaderBord.onClick.AddListener(() => { FiroozehGameService.Instance.ShowLeaderBoardsUi(e => { Error = "ShowLeaderBoardsUI Error : " + e; }); }); Achievement.onClick.AddListener(() => { FiroozehGameService.Instance.ShowAchievementsUi(e => { Error = "ShowAchievementsUI Error : " + e; }); }); Survey.onClick.AddListener(() => { FiroozehGameService.Instance.ShowSurveyUi(e => { Error = "ShowSurveyUi Error : " + e; }); }); var config = new GameServiceClientConfiguration .Builder(LoginType.Normal) .SetClientId("Your ClientId") .SetClientSecret("Your ClientSecret") .IsLogEnable(true) .IsNotificationEnable(true) .CheckGameServiceInstallStatus(true) .CheckGameServiceOptionalUpdate(false) .Build(); FiroozehGameService.ConfigurationInstance(config); FiroozehGameService.Run(OnFirstInit, Debug.LogError); }
void Start() { var config = new GameServiceClientConfiguration .Builder(LoginType.Normal) .SetClientId("mygame") .SetClientSecret("h31r1kjwy8lap7lnrwd3x7") .IsLogEnable(true) .IsNotificationEnable(true) .SetNotificationListener(OnJsonData) .CheckGameServiceInstallStatus(true) .CheckGameServiceOptionalUpdate(false) .Build(); FiroozehGameService.ConfigurationInstance(config); FiroozehGameService.Run(OnFirstInit, Debug.LogError); }
private void Start() { var config = new GameServiceClientConfiguration .Builder(LoginType.Normal) .SetClientId("2048_GameService") .SetClientSecret("mmqo1wf745m7rux8hwyks") .IsLogEnable(true) .IsNotificationEnable(true) .CheckGameServiceInstallStatus(true) .CheckGameServiceOptionalUpdate(false) .Build(); FiroozehGameService.ConfigurationInstance(config); FiroozehGameService.Run(OnFirstInit, Debug.LogError); StartNewGame(); }
void ConfigureGameService() { #if UNITY_ANDROID var config = new GameServiceClientConfiguration .Builder(LoginType.Normal) .SetClientId("GameService_ZigZag") .SetClientSecret("styo69b77wr6x3p3uw9jp9") .IsLogEnable(true) .IsNotificationEnable(true) .SetNotificationListener(NotificationListener) .CheckGameServiceInstallStatus(true) .CheckGameServiceOptionalUpdate(false) .Build(); FiroozehGameService.ConfigurationInstance(config); FiroozehGameService.Run(DataStorage.GetDataFromGameService, Debug.LogError); #elif UNITY_IOS //ios implementation...if different #endif Social.localUser.Authenticate(ProcessAuthentication); }