void Awake() { var button = GetComponent <Button>(); button.onClick.AddListener(() => { levelManager = FindObjectOfType <SingletonLevelManager>(); levelManager.LoadRandomLevel(); }); }
void NewGameOnClick() { levelController.LoadRandomLevel(); }
void Awake() { var button = GetComponent <Button>(); button.onClick.AddListener(() => { levelManager = FindObjectOfType <SingletonLevelManager>(); levelManager.LoadRandomLevel(); }); }
void NewGameOnClick() { levelController.LoadRandomLevel(); }