示例#1
0
        public TimeContext CreateTimeContext()
        {
            TimeContext ret = new TimeContext();

            time_contexts.Add(ret);

            return(ret);
        }
示例#2
0
        public void Update()
        {
            float dt = UnityEngine.Time.unscaledDeltaTime;

            for (int i = 0; i < time_contexts.Count; ++i)
            {
                TimeContext curr_time_context = time_contexts[i];

                curr_time_context.Tick(dt);
            }
        }
示例#3
0
        public Timer(TimeContext context)
        {
            Contract.IsNotNull(context);

            this.context = context;
        }