Skip to main content

Class Controller

Controllers are supposed to keep action definitions and they are used as a main component in a UserController.

Declaration
public abstract class Controller : MonoBehaviour

Derived:
MatchinghamGames.StockholmCore.Controller<TView>

Fields

SetToUnmountOnClose

Declaration
[NonSerialized]
public bool SetToUnmountOnClose

Methods

Awake()

Declaration
protected virtual void Awake()

Initialize()

Initialize here

Declaration
protected abstract void Initialize()

AddHandlers()

Register your actions here

Declaration
protected abstract void AddHandlers()

RemoveHandlers()

Unsubscribe your actions here

Declaration
protected virtual void RemoveHandlers()

ResetController()

Declaration
public virtual void ResetController()

Open()

Declaration
public virtual void Open()

Close()

Declaration
public virtual void Close()

OnDestroy()

Declaration
protected virtual void OnDestroy()