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