Esempio n. 1
0
    void Awake()
    {
        if (s_instance != null)
        {
            //Debug.LogError("Cannot have two instances of GameSnd.");
            return;
        }
        s_instance = this;

        DontDestroyOnLoad(this);
        //Debug.Log("GameSnd Awake");
    }
Esempio n. 2
0
 public static AudioClip GetSnd(GameSnd input)
 {
     return(snds[(int)input]);
 }