Example #1
0
 // Use this for initialization
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Debug.LogError ("More then one instance of TwitterAPI: " + this.transform.name);
     }
 }
Example #2
0
 public void ResetInstance()
 {
     instance = null;
 }