Example #1
0
    //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();
    }
Example #2
0
		//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 ();
		}