Run, Stop 분기 처리
This commit is contained in:
@@ -125,7 +125,6 @@ namespace Studio.AssetTool
|
||||
public GameObject CreateAsset(string name)
|
||||
{
|
||||
AssetLibraryItem item = assetScrollView.FindItem(name, AssetLibraryItemType.file);
|
||||
|
||||
OnAssetSelected(item);
|
||||
GameObject obj = selectRenderObject.gameObject;
|
||||
OnAssetDropped(item);
|
||||
@@ -281,7 +280,7 @@ namespace Studio.AssetTool
|
||||
}
|
||||
internal void OnSelectObjects(string name, List<GameObject> selectedObjects)
|
||||
{
|
||||
if (selectedObjects.Count == 0)
|
||||
if (selectedObjects.Count == 0)
|
||||
return;
|
||||
var canvas_Popup = CanvasManager.instance.GetCanvas<Canvas_Popup>();
|
||||
if (ManagerHub.instance.Get<RunManager>().curState == RunManager.EState.Run)
|
||||
|
||||
@@ -141,7 +141,6 @@ namespace Studio.AssetTool
|
||||
CommandInvoker.instance.Invoke(new ResetGizmoCommand());
|
||||
DeselectAll();
|
||||
}
|
||||
|
||||
CanvasManager.instance.GetCanvas<Canvas_DragArea>().panel_draghandler.ForceEndDrag();
|
||||
}
|
||||
public void DeselectAll()
|
||||
@@ -429,7 +428,7 @@ namespace Studio.AssetTool
|
||||
#else
|
||||
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
|
||||
shortcutTable[KeyCode.LeftControl].Add(KeyCode.C, SaveItemsToCopy);
|
||||
shortcutTable[KeyCode.LeftShift].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||
shortcutTable[KeyCode.LeftControl].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||
#endif
|
||||
|
||||
var handler = new InputHandler(getKeyActions, downKeyActions, upKeyActions, shortcutTable);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using NUnit.Framework;
|
||||
using Studio.AssetTool;
|
||||
using Studio.Conifg;
|
||||
using Studio.Manage;
|
||||
using Studio.Util;
|
||||
@@ -26,7 +27,10 @@ namespace Studio.Manage
|
||||
{
|
||||
StudioService.instance.Init();
|
||||
onRun += Dynamic.M.AGVManager.instance.OnPlayStart;
|
||||
onRun += ManagerHub.instance.Get<RenderObjectHandler>().rtgController.InitGizmo;
|
||||
onRun += ManagerHub.instance.Get<CustomAssetConnector>().OnDeselectAll;
|
||||
onStop += StudioService.instance.DisConnectMQTT;
|
||||
onStop += ManagerHub.instance.Get<CustomAssetConnector>().OnDeselectAll;
|
||||
}
|
||||
|
||||
public void ChangeState()
|
||||
|
||||
@@ -6,6 +6,7 @@ using Studio.Util;
|
||||
using XRLib;
|
||||
using XRLib.UI;
|
||||
using Studio.AssetTool;
|
||||
using Studio.Manage;
|
||||
|
||||
namespace Studio.UI
|
||||
{
|
||||
@@ -44,7 +45,7 @@ namespace Studio.UI
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (selectedObject == null || selectedObject.isCollided)
|
||||
if (selectedObject == null || selectedObject.isCollided || ManagerHub.instance.Get<RunManager>().curState == RunManager.EState.Run)
|
||||
{
|
||||
DeactivateAll();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user