public IPresenter GetPresenter <T>() where T : class { IPresenter presenter = null; if (typeof(T).Equals(typeof(ISecurityActionView))) { presenter = new SecurityActionPresenter(); } else if (typeof(T).Equals(typeof(INotifierView))) { presenter = new NotifierPresenter(); } else if (typeof(T).Equals(typeof(ISubscriberView))) { presenter = new SubscriberPresenter(); } else if (typeof(T).Equals(typeof(ISubscriptionGetcherView))) { presenter = new SubscriptionGetcherPresenter(); } return(presenter); }
void Awake() { if (Instance != null && Instance != this) // AsynchronousNotifier Singleton { Destroy(this); return; } if (transform.parent == null) { DontDestroyOnLoad(this.gameObject); } Instance = this; enabled = false; if (Popup == null || OnProgressTexture == null || OnSuccessTexture == null || OnFailureTexture == null) { Debug.LogWarning(" *** Warning : Please assign popup and default textures in the inspector"); } }