Exemplo n.º 1
0
        private bool ShowDefinedEntitySpawnScreen()
        {
            var entity = MySession.Static.ControlledEntity as MyEntity;

            if (entity != null)
            {
                var dialog = new MyGuiScreenSpawnDefinedEntity(entity.WorldMatrix.Translation + entity.WorldMatrix.Forward + entity.WorldMatrix.Up);
                MyGuiSandbox.AddScreen(dialog);
            }

            return(true);
        }
        private bool ShowDefinedEntitySpawnScreen()
        {
            var entity = MySession.Static.ControlledEntity as MyEntity;

            if (entity != null)
            {
                var dialog = new MyGuiScreenSpawnDefinedEntity(entity.WorldMatrix.Translation + entity.WorldMatrix.Forward + entity.WorldMatrix.Up);
                MyGuiSandbox.AddScreen(dialog);
            }

            return true;
        }