Ejemplo n.º 1
0
        public void TakeScreenShot(GingerAction gingerAction, eScreens screens = eScreens.Active)
        {
            //TODO: handle screen - take all etc..

            Screenshot SS = ((ITakesScreenshot)mDriver).GetScreenshot();

            byte[] b = SS.AsByteArray;
            gingerAction.Output.Add("SC1", b);
        }
Ejemplo n.º 2
0
    public void LoadScreen(eScreens screen)
    {
        if (m_CurrentScreen != null)
        {
            m_CurrentScreen.Shutdown();
            GameObject.Destroy(m_CurrentScreen.gameObject);
        }

        m_CurrentScreen = GameObject.Instantiate(m_ScreenPrefabs[(int)screen], this.transform, false).GetComponent <UIBaseScreen>();
        m_CurrentScreen.Init();
    }