public void Setup(string url, string text) { var spr = GameStaticData.GetSprite(url); _image.sprite = spr; _text.text = text; Show(true); }
public override void Setup(string question, string[] answerImage, Action <int> onActionQuestionButton) { _onClickButton = onActionQuestionButton; _questionText.text = question; for (int i = 0; i < answerImage.Length; i++) { var spr = GameStaticData.GetSprite(answerImage[i]); _answerButtons[i].Setup(spr); } }
public override void Setup(string url, string[] buttonText, Action <int> onActionQuestionButton) { _onClickButton = onActionQuestionButton; var spr = GameStaticData.GetSprite(url); _image.Setup(spr); for (int i = 0; i < _gameButton.Length; i++) { _gameButton[i].Setup(buttonText[i]); } }