public void GameServicesUserIdCallback(string userId) { GameServicesManager.ToggleIdleTimerAndSounds(true); GameServicesManager.isWindowOpen = false; if (GameServicesManager.mGameServicesHelper != null) { GameServicesManager.mGameServicesHelper.HandleUserIdCallback(userId); } }
private void HandleApplicationPause(bool paused) { if (paused) { return; } if (GameServicesManager.isWindowOpen) { GameServicesManager.isWindowOpen = false; GameServicesManager.ToggleIdleTimerAndSounds(true); } }
public static void Startup() { GameObject gameObject = GameObject.Find("Game Services Manager"); if (gameObject == null) { Service.Get <StaRTSLogger>().Error("Unable to find Game Services Manager object"); return; } GameServicesManager component = gameObject.GetComponent <GameServicesManager>(); if (component == null) { Service.Get <StaRTSLogger>().Error("Missing GameServicesManager component"); return; } component.enabled = true; GameServicesManager.Init(); Service.Get <EventManager>().RegisterObserver(component, EventId.ApplicationPauseToggled, EventPriority.AfterDefault); }
public unsafe static long $Invoke16(long instance, long *args) { GameServicesManager.ShowLeaderboard(Marshal.PtrToStringUni(*(IntPtr *)args)); return(-1L); }
public unsafe static long $Invoke15(long instance, long *args) { GameServicesManager.ShowAchievements(); return(-1L); }
public unsafe static long $Invoke14(long instance, long *args) { GameServicesManager.Share(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), Marshal.PtrToStringUni(*(IntPtr *)(args + 2))); return(-1L); }
public unsafe static long $Invoke13(long instance, long *args) { GameServicesManager.OnReady(); return(-1L); }
public static void ShowAchievements() { GameServicesManager.ToggleIdleTimerAndSounds(false); GameServicesManager.isWindowOpen = true; GameServicesManager.mGameServicesHelper.ShowAchievements(); }
public unsafe static long $Invoke27(long instance, long *args) { GameServicesManager.UnlockAchievement(Marshal.PtrToStringUni(*(IntPtr *)args)); return(-1L); }
public unsafe static long $Invoke20(long instance, long *args) { GameServicesManager.StaticReset(); return(-1L); }
public unsafe static long $Invoke1(long instance, long *args) { GameServicesManager.AttemptAutomaticSignInPrompt(); return(-1L); }
public unsafe static long $Invoke0(long instance, long *args) { GameServicesManager.AddScoreToLeaderboard(*(int *)args, Marshal.PtrToStringUni(*(IntPtr *)(args + 1))); return(-1L); }
public static void Share(string text, string contentURL, string thumbnailURL) { GameServicesManager.ToggleIdleTimerAndSounds(false); GameServicesManager.isWindowOpen = true; GameServicesManager.mGameServicesHelper.Share(text, contentURL, thumbnailURL); }
public static void ShowLeaderboard(string leaderboardId) { GameServicesManager.ToggleIdleTimerAndSounds(false); GameServicesManager.isWindowOpen = true; GameServicesManager.mGameServicesHelper.ShowLeaderboard(leaderboardId); }
public unsafe static long $Invoke18(long instance, long *args) { GameServicesManager.SignOut(); return(-1L); }
public unsafe static long $Invoke19(long instance, long *args) { GameServicesManager.Startup(); return(-1L); }
public unsafe static long $Invoke6(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(GameServicesManager.GetExternalNetworkCode())); }
public unsafe static long $Invoke21(long instance, long *args) { GameServicesManager.ToggleIdleTimerAndSounds(*(sbyte *)args != 0); return(-1L); }
public unsafe static long $Invoke8(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(GameServicesManager.GetUserId())); }
public unsafe static long $Invoke11(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(GameServicesManager.IsUserAuthenticated())); }
public static void SignIn() { GameServicesManager.ToggleIdleTimerAndSounds(false); GameServicesManager.isWindowOpen = true; GameServicesManager.mGameServicesHelper.SignIn(); }