using UnityEngine; namespace LanLib.UpdateManager { /// /// abstract class with automatic registration in . /// /// /// Instances will register themselves for updates in the OnEnable message and unregister in the OnDisable message. ///
/// Implement , and/or to be updated every frame using . ///
/// public abstract class AManagedBehaviour : MonoBehaviour, IManagedObject { protected virtual void OnEnable() { this.RegisterInManager(); } protected virtual void OnDisable() { this.UnregisterInManager(); } } }