protected override void Dispose(bool disposing) { this.parent = null; base.Dispose(disposing); }
/// <summary> /// Load Game Center and player profile /// It's not the same mechanism, due to Game Center which should be displayed on the menu. /// </summary> public void LoadPlayerProfile() { // On main thread we load Game Center GameCenterPlayer = new GameCenterPlayer(); GameCenterPlayer.ShowGameCenter += (UIViewController gcController) => { InvokeOnMainThread(() => { Window.RootViewController.PresentViewController(gcController, true, null); }); }; // Store a local profile from the game center info // Or create a temporary local player PlayerCache.Instance.Initialize(GameCenterPlayer); }
public MatchMakerDelegate(GameCenterPlayer parent) { this.parent = parent; }