Beispiel #1
0
    // ----------------------------------------------------
    // ----------------------------------------------------
    // Range Turn Ctl
    public void PlayChangeRange(RangeType range)
    {
        switch (range)
        {
        case RangeType.Long:
            rangeCtl.MoveToLongRange();
            break;

        case RangeType.Short:
            rangeCtl.MoveToShortRange();
            break;

        case RangeType.Middle:
            rangeCtl.MoveToMiddleRange();
            break;
        }
    }
Beispiel #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        RangeCtl d = (RangeCtl)target;

        EditorGUILayout.Space(50);
        if (GUILayout.Button("Test Move to Long-Range"))
        {
            d.MoveToLongRange();
        }
        if (GUILayout.Button("Test Move to Middle-Range"))
        {
            d.MoveToMiddleRange();
        }
        if (GUILayout.Button("Test Move to  Short-Range"))
        {
            d.MoveToShortRange();
        }

        // if (GUILayout.Button("Test Open Duel CC Info Panel")) {
        //     d.OpenCCInfoPanel(0);
        // }
    }