Example #1
0
    public void Execute(string message)
    {
        if (CurAction.Performer.Equals(Performer.Auto))
        {
            if (CurAction.ObjectType.Equals(ObjectType.Control) && CurAction.MotionType.Equals(MotionType.Jump))
            {
                if (message.Equals("False"))
                {
                    LineInspector curLineInspector = CurLineInspector;
                    Jump(CurAction.JumpSize);
                    curLineInspector.Init();
                }
                else
                {
                    CurLineInspector.Init();
                    Next();
                }
            }
        }
        else
        {
            LineInspector.Next();

            if (CurLineInspector.IsFinished())
            {
                CurLineInspector.Init();   // set idx to 0
                Next();
            }
        }
        return;
    }
Example #2
0
    //
    // Public Methods
    //

    public void Init(ToolLayerController toolLayers, Canvas canvas, int maxInspectionCount)
    {
        // Initializations
        inspectorTool           = ComponentManager.Instance.Get <InspectorTool>();
        this.canvas             = canvas;
        this.maxInspectionCount = maxInspectionCount;

        lineInspector.Init(toolLayers, endPtPrefab, inspectionDelPrefab, canvas);
        InitLineInspectorInfo();
    }