Пример #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); });
        }