Example #1
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "pos": _positionLerp.TargetValue = data.ToVector3(); break;

            case "rot": _rotationLerp.TargetValue = data.ToQuaternion(); break;

            case "h": _heightLerp.TargetValue = data.ToFloat(); break;

            case "sp": speed = data.ToFloat(); break;
            }
        }
Example #2
0
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "fov": fieldOfView = data.ToFloat(); break;

            case "p": position = data.ToVector3(); break;

            case "r": rotation = data.ToQuaternion();  break;

            case "n": nearPlane = data.ToFloat(); break;

            case "f": farPlane = data.ToFloat(); break;

            case "l": localTransform = true; break;
            }
        }