Beispiel #1
0
        private static void CreateParent(MenuCommand menuCommand)
        {
            var targets = GetTargets(menuCommand);

            if (enqueuedMultiTargetsCommand)
            {
                return;
            }

            enqueuedMultiTargetsCommand = true;

            GuiCallback.Enqueue(() =>
            {
                GameObjectOperations.CreateParent(targets, activatorPosition);
                enqueuedMultiTargetsCommand = false;
            });
        }
Beispiel #2
0
        private static void CreateParent(MenuCommand menuCommand)
        {
            var targets = GetTargets(menuCommand);

            GuiCallback.Enqueue(() => { GameObjectOperations.CreateParent(targets, activatorPosition); });
        }