private bool ShowEntitySpawnScreen() { var entity = MySession.Static.ControlledEntity as MyEntity; if (entity != null) { var dialog = new MyGuiScreenSpawnEntity(entity.WorldMatrix.Translation + entity.WorldMatrix.Forward + entity.WorldMatrix.Up); MyGuiSandbox.AddScreen(dialog); } return(true); }
private bool ShowEntitySpawnScreen() { var entity = MySession.Static.ControlledEntity as MyEntity; if (entity != null) { var dialog = new MyGuiScreenSpawnEntity(entity.WorldMatrix.Translation + entity.WorldMatrix.Forward + entity.WorldMatrix.Up); MyGuiSandbox.AddScreen(dialog); } return true; }