#pragma strict
public function levels() {
var hungerLevel = 10000;
var thirstLevel = 10000;
}
levels.
// states of needs
enum hungerStates { overate, full, satisfied, hungry, starving };
enum thirstStates { overdrank, quenched, satisfied, thirsty, dehydrated };
// declaring the sub-states
however whenever I try to reference anything in levels() it gives me everything except variables. However, if I make it public then I can’t access levels() at all.
I’m a C# guy so this question may be really basic. Should I use static’s to access variables within function?