Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        selectionImageGroup = GameObject.FindGameObjectWithTag("TitleScreenOptions");
        selectionImage      = selectionImageGroup.GetComponentsInChildren <Image>();
        transition          = GameObject.FindGameObjectWithTag("Manager").GetComponent <TransitionManager>();
        options             = transition.GetComponent <OptionsManager>();
        charStats           = transition.GetComponent <CharacterStats>();
        soundPlayer         = transition.GetComponent <SoundPlayer>();
        UpdateVideoSettingsText();

        unselectedColor = new Color(0.66f, 0.66f, 0.66f, 0.75f);

        state = TitleState.Title;
        CancelSelection();
        SelectOption(0);
    }