
10-07-2010, 12:46 AM
|
Banned
|
Join Date: Jan 2009
Posts: 453
|
|
You can store all your variables in a new object..
Like this.state = new TStaticVar();
Then declare all the variables as such:
this.state.health = 10;
Then when you need to clear all the variables, you can do:
this.state = null;
and then simply initialize it again. |
|
|