Example #1
0
    // Use this for initialization
    void Start()
    {
        myCursorIndex      = this.GetComponent <CursorIndexTracker> ();
        mySelectController = this.GetComponent <LevelSelectController> ();

        foreach (RectTransform child in this.GetComponent <RectTransform>())
        {
            if (child.gameObject.name == "AreYouSureMenu")
            {
                yesNoMenu = child.gameObject;
            }
        }
    }
    void Start()
    {
        cursorIndex = this.GetComponent<CursorIndexTracker> ();

        foreach (RectTransform optionsChild in optionsMenu.GetComponent<RectTransform>()) {
            if (optionsChild.gameObject.name == "Master_Volume_Slider") {
                masterVolumeSlider = optionsChild.gameObject;
            }
            if (optionsChild.gameObject.name == "Music_Volume_Slider") {
                musicVolumeSlider = optionsChild.gameObject;
            }
            if (optionsChild.gameObject.name == "Game_Volume_Slider") {
                gameVolumeSlider = optionsChild.gameObject;
            }
        }
    }
    void Start()
    {
        cursorIndex = this.GetComponent <CursorIndexTracker> ();

        foreach (RectTransform optionsChild in optionsMenu.GetComponent <RectTransform>())
        {
            if (optionsChild.gameObject.name == "Master_Volume_Slider")
            {
                masterVolumeSlider = optionsChild.gameObject;
            }
            if (optionsChild.gameObject.name == "Music_Volume_Slider")
            {
                musicVolumeSlider = optionsChild.gameObject;
            }
            if (optionsChild.gameObject.name == "Game_Volume_Slider")
            {
                gameVolumeSlider = optionsChild.gameObject;
            }
        }
    }
Example #4
0
 void Start()
 {
     myCursorIndex = this.GetComponent <CursorIndexTracker> ();
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     myCursorIndex = this.GetComponent<CursorIndexTracker> ();
 }
Example #6
0
 void Start()
 {
     myPosition = GetComponent<CursorIndexTracker> ();
 }
Example #7
0
 void Start()
 {
     parentDropMenuData = this.GetComponentInParent <DropMenuDataTracker> ();
     dropDownIndices    = this.GetComponent <CursorIndexTracker> ();
 }
 void Start()
 {
     parentDropMenuData = this.GetComponentInParent<DropMenuDataTracker> ();
     dropDownIndices = this.GetComponent<CursorIndexTracker> ();
 }
Example #9
0
 void Start()
 {
     myPosition = GetComponent <CursorIndexTracker> ();
 }