private void Update() { float t = Time.time; int c = mAnimators.Count; for (int i = 0; i < c; i++) { MeshAnimator animator = mAnimators[i]; if (t >= animator.nextTick) { animator.UpdateTick(t); } } }
private void UpdateTick(float time) { int c = mAnimators.Count; for (int i = 0; i < c; i++) { MeshAnimator animator = mAnimators[i]; if (time >= animator.nextTick) { // try // { animator.UpdateTick(time); // } // catch (System.Exception ex) // { // Debug.LogException(ex); // } } } }
private void Update() { float t = Time.time; int c = mAnimators.Count; for (int i = 0; i < c; i++) { MeshAnimator animator = mAnimators[i]; if (t >= animator.nextTick) { try { animator.UpdateTick(t); } catch (System.Exception ex) { Debug.LogException(ex); } } } }