29 lines
691 B
C#
29 lines
691 B
C#
using Studio.AssetTool;
|
|
using Studio.Manage;
|
|
using Studio.RuntimeGizmo;
|
|
using Studio.Util;
|
|
|
|
namespace Studio.Command
|
|
{
|
|
public class ResetGizmoCommand : IIrreversibleCommand
|
|
{
|
|
public ResetGizmoCommand()
|
|
{
|
|
|
|
}
|
|
|
|
public string id { get => "Reset Gizmo"; set => throw new System.NotImplementedException(); }
|
|
|
|
public bool CanExecute()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void Execute()
|
|
{
|
|
var renderObjectHandler = ManagerHub.instance.Get<RenderObjectHandler>();
|
|
renderObjectHandler.rtgController.SetWorkGizmoId(RTGController.GizmoId.None);
|
|
}
|
|
}
|
|
}
|
|
|