Ejemplo n.º 1
0
    public KeyResolveValue(KeyPortValueData _data, bool _degree, bool _raw, bool _reverse)
    {
        key      = _data.key;
        isDegree = _degree;

        raw = _raw;

        StartMin = TGUtility.GetValueFromINI(_data.min);
        StartMax = TGUtility.GetValueFromINI(_data.max);

        equation = _data.equation;

        value = m_default = (_data.origin == -1) ?
                            0 : Min + (Max - Min) * _data.origin;

        Ratio = 1;
    }
Ejemplo n.º 2
0
    public KeyResolveValue(KeyPortValueData _data, bool _degree, bool _raw, bool _reverse, float _damp)
    {
        key      = _data.key;
        isDegree = _degree;

        raw  = _raw;
        damp = _damp;

        StartMin = TGUtility.GetValueFromINI(_data.min);
        StartMax = TGUtility.GetValueFromINI(_data.max);

        equation = _data.equation;

        TargetValue = m_default = (_data.origin == -1) ?
                                  0 : Min + (Max - Min) * _data.origin;

        Debug.Log("Key: " + key + "初始值为" + TargetValue);

        Ratio = 1;
    }