//This gets called from SceneManager's Start() public virtual void InitManager() { instance = this; mSplashView = new SplashScreenView(); mSecondSplashView = new SecondSplashScreenView(); mAboutView = new AboutScreenView(); mAboutView.SetTitle(TitleForAboutPage); mAboutView.OnStartButtonTapped += OnAboutStartButtonTapped; m_UIEventHandler.CloseView += OnTappedOnCloseButton; m_UIEventHandler.GoToAboutPage += OnTappedOnGoToAboutPage; InputController.SingleTapped += OnSingleTapped; InputController.DoubleTapped += OnDoubleTapped; InputController.BackButtonTapped += OnBackButtonTapped; mSplashView.LoadView(); StartCoroutine(LoadAboutPageForFirstTime()); mActiveViewType = ViewType.SPLASHVIEW; m_UIEventHandler.Bind(); }
//This gets called from SceneManager's Start() public virtual void InitManager () { instance = this; mSplashView = new SplashScreenView (); mSecondSplashView = new SecondSplashScreenView (); mAboutView = new AboutScreenView (); mAboutView.SetTitle (TitleForAboutPage); mAboutView.OnStartButtonTapped += OnAboutStartButtonTapped; m_UIEventHandler.CloseView += OnTappedOnCloseButton; m_UIEventHandler.GoToAboutPage += OnTappedOnGoToAboutPage; InputController.SingleTapped += OnSingleTapped; InputController.DoubleTapped += OnDoubleTapped; InputController.BackButtonTapped += OnBackButtonTapped; mSplashView.LoadView (); StartCoroutine (LoadAboutPageForFirstTime ()); mActiveViewType = ViewType.SPLASHVIEW; m_UIEventHandler.Bind (); }