コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }