/// <summary>
    /// 延迟使游戏为全屏展示模式
    /// </summary>
    IEnumerator DelayShowFullScreenGame()
    {
        yield return(new WaitForSeconds(1f));

        //游戏为全屏展示模式
        XkGameCtrl.MakeGameToFullScreen();
    }
Пример #2
0
    IEnumerator DelayLoadGame()
    {
#if FULL_GAME_SCREEN_MODE
        //游戏为全屏展示模式
        XkGameCtrl.MakeGameToFullScreen();
#else
        //gameObject.AddComponent<TestGameWindows>();
        //游戏为全屏窗口模式.
        gameObject.AddComponent <ScreenConfig>();
#endif
        yield return(new WaitForSeconds(5f));

        LoadGame();
    }