private void Start() { UIController = (UIController)FindObjectOfType(typeof(UIController)); iterationController = (NewIterationController)FindObjectOfType(typeof(NewIterationController)); button.onClick.AddListener(() => { iterationController.StartNewIteration(); //UIController.панель закрыть }); }
private void Start() { iterationController = (NewIterationController)FindObjectOfType(typeof(NewIterationController)); }