示例#1
0
        /// <summary>
        /// Configure the given ComponentSystemGroup to update at a fixed timestep, given by timeStep.
        /// The group will always be ticked exactly once, and the time will be the given timeStep since
        /// the last time it was ticked.  This clock will drift from actual elapsed wall clock time.
        /// </summary>
        /// <param name="group">The group whose UpdateCallback will be configured with a fixed time step update call</param>
        /// <param name="timeStep">The fixed time step (in seconds)</param>
        public static void EnableFixedRateSimple(ComponentSystemGroup group, float timeStep)
        {
            var manager = new FixedRateSimpleManager(timeStep);

            group.UpdateCallback = manager.UpdateCallback;
        }
        public static void EnableFixedRateSimple(ComponentSystemGroup group, float timestep)
        {
            var manager = new FixedRateSimpleManager(timestep);

            group.FixedRateManager = manager;
        }