public OIRoutePointInfo(int _key) : base(_key) { this.number = 0; this.speed = 2f; this.easeType = StudioTween.EaseType.linear; }
public Point(Vector3 pt_pos, Vector3 rot, Vector3 aid_pos, float speed, StudioTween.EaseType easeType, OIRoutePointInfo.Connection connection, bool link) { this.pt_pos = pt_pos; this.rot = rot; this.aid_pos = aid_pos; this.speed = speed; this.easeType = easeType; this.connection = connection; this.link = link; }
public override void Load(BinaryReader _reader, Version _version, bool _import, bool _tree = true) { base.Load(_reader, _version, _import, false); this.speed = _reader.ReadSingle(); this.easeType = (StudioTween.EaseType)_reader.ReadInt32(); this.connection = (OIRoutePointInfo.Connection)_reader.ReadInt32(); if (this.aidInfo == null) { this.aidInfo = new OIRoutePointAidInfo(_import ? Studio.Studio.GetNewIndex() : -1); } this.aidInfo.Load(_reader, _version, _import, true); this.link = _reader.ReadBoolean(); }
private void OnValueChangedEase(int _value) { if (this.m_OCIRoutePoint == null) { return; } IEnumerable <OCIRoutePoint> ociRoutePoints = ((IEnumerable <ObjectCtrlInfo>)Studio.Studio.GetSelectObjectCtrl()).Where <ObjectCtrlInfo>((Func <ObjectCtrlInfo, bool>)(v => v.kind == 6)).Select <ObjectCtrlInfo, OCIRoutePoint>((Func <ObjectCtrlInfo, OCIRoutePoint>)(v => v as OCIRoutePoint)); StudioTween.EaseType ease = this.listEase[_value].ease; foreach (OCIRoutePoint ociRoutePoint in ociRoutePoints) { ociRoutePoint.easeType = ease; } }
public EaseInfo(string _name, StudioTween.EaseType _ease) { this.name = _name; this.ease = _ease; }