Пример #1
0
 void Awake()
 {
     if (Instance != null)
     {
         Debug.Log("Multiple instances of SoundEffects!");
     }
     Instance = this;
 }
Пример #2
0
    public void PistaConocida(int index)
    {
        _pistaConocida[index] = true;
        ItemSound itemSound = _pistas[index].GetComponent <ItemSound>();

        if (itemSound != null)
        {
            itemSound.PlaySound();
        }
    }