什么可以替代Xamarin中的Microsoft.Phone.Shell

时间:2019-03-30 16:35:01

标签: c# xamarin.ios mono monogame

我正在使用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);

任何帮助将不胜感激。

0 个答案:

没有答案