The type or namespace name "xxx" could not be found (but it is exist!)

I am trying to make a day night cycle with tutorial and I follow his script but I got an error that I found so many resource still can’t be solve,guys help me,it stuck me for few days,plz!:frowning:

Where is the type named “xxx” defined?

This error is saying that a type named “xxx” is not defined.

Can you show the definition of the type “xxx”?

(Edit: Disregard my post, LightStriker beat me to it. :slight_smile: )

Actually I don’t know how to defined the array with a right way,but here is whole script and error.

1711999--107819--0442de0e3d85c4b39ca0f3c79d9d4566_w41_h19.gif

Let’s try something else… What IS “xxx”?

XXX is Sun,origin name is Sun,but I test the error to change its name that I will better to see it influence.

You wrote a class named “XXX” somewhere? Can you post that code?

Oh ! thanks your notice,I fixed it problem by change the xxx name to the class name,and no error,sun working!

Thank you guys , you are the best!

1712315--107848--093969763393613.jpg