void Awake() { if (Instance != null) { Debug.Log("Multiple instances of SoundEffects!"); } Instance = this; }
public void PistaConocida(int index) { _pistaConocida[index] = true; ItemSound itemSound = _pistas[index].GetComponent <ItemSound>(); if (itemSound != null) { itemSound.PlaySound(); } }