protected void Start() { if (BackArrow == null) { BackArrow = gameObject.transform.Find("BackArrow").GetComponent <Button>(); } if (NextArrow == null) { NextArrow = gameObject.transform.Find("NextArrow").GetComponent <Button>(); } if (TargetText == null) { TargetText = gameObject.transform.Find("Text").GetComponent <Text>(); } BackArrow.onClick.AddListener(() => OnArrowClick(false)); NextArrow.onClick.AddListener(() => OnArrowClick(true)); //TODO: Fix the bug of going from the max res or meaning the atual one //to a other one we dont know possibleResolutions = ScreenController.GetPossibleResolutions(); Display(ScreenController.CurrentResolution()); }