Ejemplo n.º 1
0
            int IComparer.Compare(object objX, object objY)
            {
                AnimationEvent animationEvent1 = (AnimationEvent)objX;
                AnimationEvent animationEvent2 = (AnimationEvent)objY;
                float          time1           = animationEvent1.time;
                float          time2           = animationEvent2.time;

                if ((double)time1 != (double)time2)
                {
                    return((int)Mathf.Sign(time1 - time2));
                }
                return(animationEvent1.GetHashCode() - animationEvent2.GetHashCode());
            }
Ejemplo n.º 2
0
            int IComparer.Compare(object objX, object objY)
            {
                AnimationEvent animationEvent  = (AnimationEvent)objX;
                AnimationEvent animationEvent2 = (AnimationEvent)objY;
                float          time            = animationEvent.time;
                float          time2           = animationEvent2.time;

                if (time != time2)
                {
                    return((int)Mathf.Sign(time - time2));
                }
                int hashCode  = animationEvent.GetHashCode();
                int hashCode2 = animationEvent2.GetHashCode();

                return(hashCode - hashCode2);
            }
Ejemplo n.º 3
0
            int IComparer.Compare(object objX, object objY)
            {
                AnimationEvent event2 = (AnimationEvent)objX;
                AnimationEvent event3 = (AnimationEvent)objY;
                float          time   = event2.time;
                float          num2   = event3.time;

                if (time != num2)
                {
                    return((int)Mathf.Sign(time - num2));
                }
                int hashCode = event2.GetHashCode();
                int num4     = event3.GetHashCode();

                return(hashCode - num4);
            }
            int IComparer.Compare(System.Object objX, System.Object objY)
            {
                AnimationEvent x     = (AnimationEvent)objX;
                AnimationEvent y     = (AnimationEvent)objY;
                float          timeX = x.time;
                float          timeY = y.time;

                if (timeX != timeY)
                {
                    return((int)Mathf.Sign(timeX - timeY));
                }

                int valueX = x.GetHashCode();
                int valueY = y.GetHashCode();

                return(valueX - valueY);
            }