// 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; } } }
void Start() { myCursorIndex = this.GetComponent <CursorIndexTracker> (); }
// Use this for initialization void Start() { myCursorIndex = this.GetComponent<CursorIndexTracker> (); }
void Start() { myPosition = GetComponent<CursorIndexTracker> (); }
void Start() { parentDropMenuData = this.GetComponentInParent <DropMenuDataTracker> (); dropDownIndices = this.GetComponent <CursorIndexTracker> (); }
void Start() { parentDropMenuData = this.GetComponentInParent<DropMenuDataTracker> (); dropDownIndices = this.GetComponent<CursorIndexTracker> (); }
void Start() { myPosition = GetComponent <CursorIndexTracker> (); }