when ever i try to put an animation in the inspector
This is what i have.
1.)var PowerOn : Animation;
2.)
3.)function Start () {
4.)
5.)}
6.)
7.)function Update(){
8.) if(Input.GetKeyDown(KeyCode.F)){
9.) this.animation.Play(“Power On”);
10.) }
11.)}
in the inspecter this is what it shows:
Turn On Power(Script)
Script jsTurnPowerOn
Power On none(Animation)
when ever i bring the animation i have, or any other animation, and drag it on top it wont let me it has the circle with the line through it how do i make it so i can add an animation.
One more thing, even though
– Chronos-LPowerOnis technically a okay way to name variables, the better way to do it ispowerOn. You can differentiate the name in your script very quickly: Class Class.StaticFunction() variable variableWithLongerNames variable.Function() variable.FunctionWithLongerName() Function and class should be fully capitalized, while variable should be using a camel style: capitalize all but the first word