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); }); }
private static void CreateChild(MenuCommand menuCommand) { var target = GetTarget(menuCommand); GuiCallback.Enqueue(() => { GameObjectOperations.CreateChild(target, activatorPosition); }); }
private static void CreatePrefab(MenuCommand menuCommand) { var target = GetTarget(menuCommand); GuiCallback.Enqueue(() => { GameObjectOperations.CreatePrefab(target); }); }
private static void Replace(MenuCommand menuCommand) { var targets = GetTargets(menuCommand); GuiCallback.Enqueue(() => { GameObjectOperations.Replace(targets, activatorPosition); }); }