// PRIVATE STATIC //-------------------------------------- // Constructor //-------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="com.rmc.projects.event_dispatcher.SampleObservedComponent"/> class. /// </summary> public SampleObservedComponent() { eventDispatcher = new EventDispatcher (this); }
/// <summary> /// Raises the destroy event. /// </summary> public void OnDestroy() { // CLEANUP MEMORY eventDispatcher.removeAllEventListeners(); eventDispatcher = null; }
// PUBLIC // PUBLIC STATIC // PRIVATE // PRIVATE STATIC //-------------------------------------- // Methods //-------------------------------------- /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// /// CONSTRUCTOR / DESTRUCTOR /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// ///<summary> /// Constructor ///</summary> public CustomController( ) { //Debug.Log ("CustomController.constructor()"); eventDispatcher = new EventDispatcher (this); }