コード例 #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");
    }
コード例 #2
0
ファイル: SoundHandler.cs プロジェクト: kurtis2222/RamboFirst
 public static AudioClip GetSnd(GameSnd input)
 {
     return(snds[(int)input]);
 }