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.
↧