示例#1
0
        private static void Replace(MenuCommand menuCommand)
        {
            var targets = GetTargets(menuCommand);

            if (enqueuedMultiTargetsCommand)
            {
                return;
            }

            enqueuedMultiTargetsCommand = true;

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

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