Ejemplo n.º 1
0
 protected override void OnDestroy()
 {
     ContentHolder.Deinit();
     SaveDataHandler.ResetCache();
     MainActivity.Game = null;
     base.OnDestroy();
 }
Ejemplo n.º 2
0
 private static void OnSignInCompleted(object sender, SignInCompletedEventArgs e)
 {
     SaveDataHandler.ResetCache();
     StatTracker.LoadAsync();
     if (!(Engine.Room is RoomMain) && !(Engine.Room is RoomInit))
     {
         Engine.ChangeRoom <RoomMain>();
     }
 }
Ejemplo n.º 3
0
 private static void OnSignOutCompleted(object sender, SignOutCompletedEventArgs e)
 {
     XboxLiveObject.CurrentUser    = null;
     XboxLiveObject.CurrentContext = null;
     SaveDataHandler.ResetCache();
     StatTracker.Reset();
     if (!(Engine.Room is RoomMain) && !(Engine.Room is RoomInit))
     {
         Engine.ChangeRoom <RoomMain>();
     }
     XboxLiveObject.SignOutCompleted?.Invoke(sender, e);
 }