Buttons not workling

Maybe I’m missing something but I cannot see any Debug.Logs in the scripts you posted. Where did the messages come from?

Furthermore, could you please format your code with the </> button to make it more readable?

Last but not least, did you check the value of scoreKeeper in Awake? Maybe FindObjectOfType<ScoreKeeper>(); did not return any object. Also try to rename Awake() to Start() in the LevelManager to ensure that the code in Awake() in the ScoreKeeper object gets executed first. Since Unity executes scripts in a random order, it might be that the Awake() method of the LevelManager gets (randomly) executed before the Awake() method of the ScoreKeeper.


See also: