public void SetTimerParameter(int childNumber) { ChooseSetting timerSetting = this.transform.GetChild(childNumber).GetComponent <ChooseSetting>(); CurrentFightStats.SetTimer(timerSetting.GetValueOption()); }