public AnimationTracker(AniMeshData.AniClip Clip, AniMeshData Data) { _Clip = Clip; _Data = Data; _ClipMin = ((float)(_Clip.StartFrame + 1) / (float)_Data.FrameCount); _ClipMax = ((float)_Clip.StartFrame + (float)_Clip.Length) / (float)_Data.FrameCount; }
private AnimationTracker FindTrackerByClip(AniMeshData.AniClip Clip) { for (int i = 0; i < _Trackers.Length; i++) { if (_Trackers [i] != null && _Trackers[i]._Clip == Clip) { return(_Trackers [i]); } } return(null); }