Esempio n. 1
0
            /// <summary>
            /// Removes a new that needs to be called every fixed framerate frame.
            /// </summary>
            /// <param name="update"></param>
            public void RemoveFixedUpdate(IFixedUpdate update)
            {
                // Don't do anything if the object will be destroyed.
                if (destroying)
                {
                    return;
                }

                FixedUpdateList.Remove(update);
            }
Esempio n. 2
0
            /// <summary>
            /// Adds a new component that needs to be called every fixed framerate frame.
            /// </summary>
            /// <param name="update"></param>
            public void AddFixedUpdate(IFixedUpdate update)
            {
                // Don't do anything if the object will be destroyed.
                if (m_Destroying)
                {
                    return;
                }

                FixedUpdateList.Add(update);
            }