public void Decode(string tg, CfgData data) { switch (tg) { case "sc": targetSize = data.ToVector3(); break; case "pos": targetLocalPosition = data.ToVector3(); break; case "col": targetColor = data.ToColor(); break; case "tCol": targetTextColor = data.ToColor(); break; } }
public void Decode(string key, CfgData data) { switch (key) { case "fU": Down(data.ToVector2()); break; case "fP": Down(data.ToVector3()); break; case "tU": uvTo = data.ToVector2(); break; case "tP": posTo = data.ToVector3(); break; case "Up": MouseUpEvent = true; break; } }
public void Decode(string tg, CfgData data) { switch (tg) { case "pos": transform.localPosition = data.ToVector3(); break; } }
// .Add("m", _painter.EncodeMeshStuff) // .Add_IfNotEmpty("mat", _materialTag); public override void Decode(string tg, CfgData data) { switch (tg) { case "pos": relativePosition = data.ToVector3(); break; case "s": relativeZoom = data.ToFloat(); break; //case "m": _painter.Decode(data); break; //case "mat": _materialTag = data; break; } }
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; } }
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; } }