コード例 #1
0
        public void ChangeTool(string toolName)
        {
            currentToolName = toolName;

            var args = new ToolChangedArgs {
                toolName = currentToolName
            };

            OnToolChangedEvent?.Invoke(this, args);

            ShowCurrentTool(showTools);
        }
コード例 #2
0
        void OnToolChanged(object sender, ToolChangedArgs args)
        {
            bool switchToAnim = args.toolName == "Animation";

            if (switchToAnim && !isAnimationTool)
            {
                UpdateFromSelection();
            }
            if (!switchToAnim && isAnimationTool)
            {
                DeleteGoalCurves();
            }
            isAnimationTool = switchToAnim;
        }
コード例 #3
0
 public static void OnChangeTool(object sender, ToolChangedArgs args)
 {
     ChangeTool(args.toolName);
 }