Пример #1
0
    void Awake()
    {
        screens            = GetComponentsInChildren <LevelInfo> ();
        worldDisplay       = GetComponentInChildren <WorldLevels> ();
        worldSelectManager = GetComponent <WorldSelectManager> ();

        currentScreen  = screens [0];
        previousScreen = screens [1];
        nextScreen     = screens [2];

        menuCameraController.FocusCamera(worldDisplay.transform.localEulerAngles - new Vector3(36, 0, 0), 0);
    }
Пример #2
0
    public override void Awake()
    {
        //set up singleton instance
        if (controller == null)
        {
            controller = this;
            DontDestroyOnLoad(this);
            base.Awake();

            levelSelectManager = mainMenuSystem.GetComponent <LevelSelectManager>();
            worldSelectManager = mainMenuSystem.GetComponent <WorldSelectManager>();

            OnLevelWasLoaded();
        }
        else if (controller != this)
        {
            Destroy(gameObject);
        }
    }
Пример #3
0
    void Start()
    {
        manager = GetComponent<UIManager> ();
        startMenu = GetComponent<StartMenuManager> ();
        worldSelect = GetComponent<WorldSelectManager>();
        levelSelect = GetComponent<LevelSelectManager>();
        inGameUI = GetComponent<InGameUIManager> ();
        pauseMenu = GetComponent<PauseMenuManager> ();
        levelFail = GetComponent<LevelFailManager> ();
        levelSuccess = GetComponent<LevelSuccessManager> ();
        creditMenu = GetComponent<CreditsMenuManager> ();

        SetUIState(UIState.StartMenu);
    }
Пример #4
0
 void Start()
 {
     worldSelectManager = GetComponentInParent <WorldSelectManager> ();
 }