Question by
madman_118 · Sep 02, 2015 at 04:34 PM ·
unity 5scripting problemmonodevelop
How do i change this line so that it works as im getting the error 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?
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++;
Comment
Answer by Positive7 · Sep 02, 2015 at 06:37 PM
Without seeing your code it's a bit harder so try this :
ScoreManager something = GameObject.FindObjectOfType(typeof(ScoreManager)) as ScoreManager;
something.score++;
Your answer
Follow this Question
Related Questions
Help me please... I have this script but its doesn't drag objects 0 Answers
Cannot get intellisense to work in monodevelop for Unity (C# on windows). 1 Answer
How to take user input, convert it integer, and print it on screen? 1 Answer
Unity Monodevelop script missing all its lines entirely 0 Answers