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

                LateUpdateList.Remove(update);
            }
Beispiel #2
0
            /// <summary>
            /// Adds a new component that needs to be called every frame.
            /// </summary>
            /// <param name="update"></param>
            public void AddLateUpdate(ILateUpdate update)
            {
                // Don't do anything if the object will be destroyed.
                if (m_Destroying)
                {
                    return;
                }

                LateUpdateList.Add(update);
            }