示例#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;
            });
        }
        private static void CenterOnBounds(MenuCommand menuCommand)
        {
            var target = GetTarget(menuCommand);

            GuiCallback.Enqueue(() => { TransformOperations.CenterOnBounds(target); });
        }
        private static void Bake(MenuCommand menuCommand)
        {
            var target = GetTarget(menuCommand);

            GuiCallback.Enqueue(() => { TransformOperations.Bake(target); });
        }
示例#4
0
        private static void CreateChild(MenuCommand menuCommand)
        {
            var target = GetTarget(menuCommand);

            GuiCallback.Enqueue(() => { GameObjectOperations.CreateChild(target, activatorPosition); });
        }
示例#5
0
        private static void CreatePrefab(MenuCommand menuCommand)
        {
            var target = GetTarget(menuCommand);

            GuiCallback.Enqueue(() => { GameObjectOperations.CreatePrefab(target); });
        }
示例#6
0
        private static void Replace(MenuCommand menuCommand)
        {
            var targets = GetTargets(menuCommand);

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