public override void OnEndGame(Game game) { var oldInterface = MainInterface; Gui.SetViewer(Viewer.CreateLocalPlayer(MainInterface.RenderView, MainInterface.AudioInterface, this, Gui)); oldInterface.SetGame(null); }
public override void OnEndGame(Game game) { MainInterface.SetGame(null); if (!(this is LocalPlayerViewer)) { Gui.SetViewer(Viewer.CreateLocalPlayer(MainInterface.RenderView, MainInterface.AudioInterface, this, Gui)); } }
public override void OnEndGame(Game game) { Log.Verbose.Write(ErrorSystemType.Application, "Local viewer: End game"); var oldInterface = MainInterface; if (!(this is LocalPlayerViewer)) { Gui.SetViewer(Viewer.CreateLocalPlayer(MainInterface.RenderView, MainInterface.AudioInterface, this, Gui)); } oldInterface.SetGame(null); }