public void Debounce(float p_delay, Ch3TimeType p_timeType = Ch3TimeType.SCALED_FIXED, bool p_repeat = false)
            {
                _scheduleTimeStamp = Ch3TimeManager.CreateTimeStamp();
                _isRepeating       = p_repeat;
                _delay             = (p_delay < MIN_DELAY) ? MIN_DELAY : p_delay;
                _timeType          = p_timeType;

                schedule();
            }
 public Ch3Invoke(_fixedUpdateBehaviour p_fixedUpdateBehaviour, System.Action p_action)
 {
     _fixedUpdateBehaviour = p_fixedUpdateBehaviour;
     _action            = p_action;
     _scheduleTimeStamp = Ch3TimeManager.CreateTimeStamp();
     _isScheduled       = false;
     _isRepeating       = false;
     _delay             = MIN_DELAY;
     _timeType          = Ch3TimeType.SCALED_FIXED;
 }
Esempio n. 3
0
            public float GetTimePassed(Ch3TimeType p_time)
            {
                if (p_time == Ch3TimeType.SCALED)
                {
                    return(ScaledTimePassed);
                }

                if (p_time == Ch3TimeType.SCALED_FIXED)
                {
                    return(ScaledFixedTimePassed);
                }

                if (p_time == Ch3TimeType.REAL)
                {
                    return(RealTimePassed);
                }

                return(0);
            }