Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
        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);
                    // }
                }
            }
        }
Ejemplo n.º 3
0
        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);
                    }
                }
            }
        }