Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (AdjustTime != null)
            {
                AdjustTime.Dispose();
                AdjustTime = null;
            }

            if (FeedbackLabel != null)
            {
                FeedbackLabel.Dispose();
                FeedbackLabel = null;
            }

            if (TransportationCar != null)
            {
                TransportationCar.Dispose();
                TransportationCar = null;
            }

            if (TransportationPublic != null)
            {
                TransportationPublic.Dispose();
                TransportationPublic = null;
            }

            if (TransportationWalking != null)
            {
                TransportationWalking.Dispose();
                TransportationWalking = null;
            }
        }
            private Evaluator(AnimationCurve curve, float multiplier, WrapMode wrapMode, AdjustTime adjust)
            {
                this.curve      = curve;
                this.multiplier = multiplier;
                this.duration   = curve[curve.length - 1].time;
                this.adjust     = adjust;

                var isLoop = IsLoop(wrapMode);

                if (isLoop == true)
                {
                    timeIterator = Lerp.ElapsedTime();
                }
                else
                {
                    timeIterator = Lerp.Duration(duration * multiplier);
                }
            }
Example #3
0
        //Set time correction
        public static string SetTimeInfo()
        {
            string cmd = header + AdjustTime.SetTimeInfo() + end;

            return(cmd);
        }