public void Init(TitleButtonController controller, System.Action action) { BackGround = GetComponent <Image>(); BackGround.color = new Color(0.5f, 0.5f, 0.5f, 1); _controller = controller; Action = action; }
public override void Init() { //_startButton = Helper.Find<Button>(transform, "StartButton"); //_text = Helper.Find<TextMeshProUGUI>(transform, "StartButton/Text"); //_startButton.onClick.AddListener(StartButton) _buttonController = Helper.Find <TitleButtonController>(transform, "Image"); _buttonController.Init(); }