void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); return; } poofSound = GetComponent <AudioSource>(); gameObject.SetActive(false); }
private void Awake() { instance = this; }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); return; } poofSound = GetComponent <AudioSource>(); gameObject.SetActive(false); }
private void Awake() { instance = this; }