|
ok I asked this before but I posted two very massive script files. I figured that might be intimidating to read so I shortened it :) isstunned is a variable from the file I am trying to access it's name is PlayerScript it's component is Player Script and it's public class is PlayerScript ...etc etc btw this is the compile error
(comments are locked)
|
|
At least in the fragment shown, you've not created the variable Pscript - it's a capital crime in C#. You should do: Thank you but now I am getting this compile error lol Assets/Scripts/PlayerAnimation.cs(24,28): error CS1061: Type
Jul 10 '11 at 10:32 PM
deeredman1991
oops...nvm i spelled stuned with two n's lol thats why I got the compile error ^_^
Jul 10 '11 at 10:37 PM
deeredman1991
(comments are locked)
|
|
You need to mark the variable as For instance (this is not a unity example, mearly to show how to share variables between classes) Basically, you can't access a variable that's marked Edit: It seems my efforts have been wasted :( needs to be I don't get it...what am I supposed to be looking at? I marked isstunned as public...but when I try to mark Pscript as public I get...a compile error :| unexpected symbol compile error to be precise
Jul 10 '11 at 10:27 PM
deeredman1991
(comments are locked)
|

Or maybe it's because you forgot a
typecastat the end.