Help, i cant reference my vars!
- by SystemNetworks
I have a sub-class(let's call it sub) and it contains all the function of an object in my game. In my main class(Let's call it main), i connect my sub to main. (Example sub
Code:
s = new sub();
Then I put my sub function at the update method.
Code:
s.myFunc();
Becuase in my sub, i have booleans, integers, float and more. The problem is that…