void Awake() { Debug.Log ("AudioSFX - Awake() - " + gameObject.name); if(_instance == null) { _instance = this; } else { Debug.Log ("Destroying self Instance: " + gameObject.name); Destroy (this); } }
void OnDestroy() { if(_instance == this) { _instance = null; } }