Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Reference Script In Other Script "type or namespace nae 'myScript' cannot..."

$
0
0
I have 2 scripts in the same folder. In my Camera2DFollow script, this line works: public CharacterControl control; However, in my CharacterControl script, this line does not work: public Camera2DFollow cameraScript; It gives me the following error: Assets/Scripts/CharacterControl.cs(9,16): error CS0246: The type or namespace name `Camera2DFollow' could not be found. Are you missing a using directive or an assembly reference? I see know reason for it to do this, as they are almost identical codes.

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>