Assets/BoxLauncher.cs(28,53): error CS0246: The type or namespace name `ScoreManager’ could not be found. Are you missing a using directive or an assembly reference? And also “score” is red
GameObject.FindObjectOfType().score++;
Assets/BoxLauncher.cs(28,53): error CS0246: The type or namespace name `ScoreManager’ could not be found. Are you missing a using directive or an assembly reference? And also “score” is red
GameObject.FindObjectOfType().score++;
Without seeing your code it’s a bit harder so try this :
ScoreManager something = GameObject.FindObjectOfType(typeof(ScoreManager)) as ScoreManager;
something.score++;