Пример #1
0
    public void Init()
    {
        gameManager = GameManager.GetInstance();
        uiManager   = UIManager.GetInstance();
        base.Init(new CircularIndex(gameManager.saveJson.saves.Length), null, true);

        time.SetParent(menuArea);
        gameComplete.SetParent(menuArea);
        shrine.Init();
        selected.Init();
    }
Пример #2
0
    public void Init()
    {
        List <string> items = new List <string>();

        foreach (MenuJson.OptionMenuTab option in GameManager.GetInstance().menuJson.optionsMenu)
        {
            items.Add(option.tabName);
        }
        top.items = items.ToArray();
        topBar.Init();
        top.Init(false, true);

        top.ChangeButtons(ButtonManager.ButtonID.L1, ButtonManager.ButtonID.R1);

        bottomLeft.menuArea.SetParent(bottomMenu.menuArea);
        bottomRight.menuArea.SetParent(bottomMenu.menuArea);
        BottomMenuChange(0, true);
    }
Пример #3
0
    public void Init()
    {
        hasSomeSave     = gameManager.saveJson.saves.Length != 0;
        hasSelectedSave = gameManager.saveIndex != -1 && hasSomeSave;

        List <string> items = new List <string>();

        foreach (MenuJson.MainMenuItem menuItem in gameManager.menuJson.mainMenu)
        {
            switch (menuItem.id)
            {
            case StarMenu.MenuItemId.Continue:
                if (!hasSelectedSave)
                {
                    continue;
                }
                break;

            case StarMenu.MenuItemId.Load_Game:
                if (!hasSomeSave)
                {
                    continue;
                }
                break;
            }
            items.Add(menuItem.name);
        }

        textMenu.items = items.ToArray();

        logo.Init();
        textMenu.Init(true, true);
        options.Init();
        loadZone.Init();
        load.menuArea.SetParent(loadZone.menuArea);
        load.Init();
    }