我正在使用VisualStudio for Mac和MonoGame将XNA游戏移植到iOS ...我想知道实际上是什么替代了Microsoft.Phone.Shell
。我需要订阅以下事件:
PhoneApplicationService.Current.Launching += OnGameLaunching;
PhoneApplicationService.Current.Closing += OnGameClosing;
PhoneApplicationService.Current.Deactivated += OnGameDeactivated;
PhoneApplicationService.Current.Activated += OnGameActivated;
我还需要这样保存游戏状态:
PhoneApplicationService.Current.State.Add("_obj" + index.ToString(), gameObject);
任何帮助将不胜感激。