Пример #1
0
    public override void Start()
    {
        instance = this;
        if (GameWorldController.instance.AtMainMenu)
        {
            WindowDetectUW.SwitchFromMouseLook();
            //Initialize the open screens from the game files
            switch (_RES)
            {
            case GAME_UW2:
                OpScr.GetComponent <RawImage>().texture = GameWorldController.instance.bytloader.LoadImageAt(BytLoader.UW2MAIN_BYT);
                break;

            default:
                OpScr.GetComponent <RawImage>().texture = GameWorldController.instance.bytloader.LoadImageAt(BytLoader.OPSCR_BYT);

                break;
            }
            CharGen.GetComponent <RawImage>().texture = GameWorldController.instance.bytloader.LoadImageAt(BytLoader.CHARGEN_BYT);

            CursorIcon     = GameWorldController.instance.grCursors.LoadImageAt(0);
            CursorPosition = new Rect(
                0.0f,
                0.0f,
                cursorSizeX,
                cursorSizeY);
            //Play the splash screens.
            CharGen.SetActive(false);
            UWHUD.instance.CutScenesFull.SetAnimationFile = "FadeToBlackSleep";
            UWHUD.instance.CutScenesFull.End();
            Cutscene_Splash ci = UWHUD.instance.gameObject.AddComponent <Cutscene_Splash>();
            UWHUD.instance.CutScenesFull.cs = ci;
            UWHUD.instance.CutScenesFull.Begin();
        }
    }
Пример #2
0
    private void Start()
    {
        GameInstance = GameInstance.Instance;

        Hud = (MainMenuHud)HudBase.Instance;
        OpenMainMenu();
    }