Example #1
0
 void OnEnable()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Example #2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     tm = text.GetComponent <TextMesh>();
 }
Example #3
0
 void OnEnable()
 {
     if(instance == null)
         instance = this;
 }
Example #4
0
 void Awake()
 {
     if (instance == null)
         instance = this;
     tm = text.GetComponent<TextMesh>();
 }