/// <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); }
/// <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); }