void Awake() { if (Instance != null) { Destroy(gameObject); return; } Instance = this; _anim = gameObject.GetComponent <Animator>(); _audio = GetComponent <AudioSource>(); }
void Awake() { if (Instance != null) { Destroy(gameObject); return; } Instance = this; _anim = gameObject.GetComponent<Animator>(); _audio = GetComponent<AudioSource>(); }