Answers for "Trouble with converting some JS code to C#"http://answers.unity.com/questions/730302/trouble-with-converting-some-js-code-to-c.html
The latest answers for the question "Trouble with converting some JS code to C#"Answer by tapirhttp://answers.unity.com/answers/730306/view.html
It seems like you are using a singleton pattern. You can use the same name for the variable. Normally you use singleton variables to avoid having multiple instance of a class. For example EasyObjectPoolController could instance an instance of EasyObjectPool, only if the static varibale EasyObjectPool.instance is null.
For more about singleton pattern this is the [wikipedia][1] article, its a basic start. Hope it helps!
public class EasyObjectPool
{
static EasyObjectPool instance;
void Start ()
{
instance = this;
}
}
[1]: http://en.wikipedia.org/wiki/Singleton_patternThu, 19 Jun 2014 01:29:59 GMTtapir