Esempio n. 1
0
 private void InitInstance()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this);
         throw new Exception("An instance of MoneyFBX already exists.");
     }
     else
     {
         _instance = this;
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     _instance = this;
 }