Exemplo n.º 1
0
 void Start()
 {
     InputController.BackButtonTapped += OnBackButtonTapped;
     InputController.SingleTapped     += OnSingleTapped;
     InputController.DoubleTapped     += OnDoubleTapped;
     m_UIEventHandler.CloseView       += OnTappedOnCloseButton;
     m_UIEventHandler.GoToAboutPage   += OnAboutPageTapped;
     m_UIEventHandler.Bind();
     //Enable continuous autofocus on start;
     SetFocusModeToContinuousAuto();
     mActiveViewType = ViewType.ARCAMERAVIEW;
 }
Exemplo n.º 2
0
    //This gets called from SceneManager's Start()
    public virtual void InitManager()
    {
        mSplashView = new SplashScreenView();
        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();
    }