コード例 #1
0
    private void Awake()
    {
        if (!Instance)
        {
            Instance = this;
        }
        else
        {
            Destroy(Instance);
        }
        DontDestroyOnLoad(this);

        for (int i = 0; i < 4; i++)
        {
            bgm[i] = new Sound(TBL_SOUND.GetEntity(i));
        }

        for (int i = 4; i < TBL_SOUND.CountEntities; i++)
        {
            sfx[i - 4] = new Sound(TBL_SOUND.GetEntity(i));
        }
    }
コード例 #2
0
 public Sound(TBL_SOUND tc)
 {
     this.name = tc.name;
     this.clip = tc.Sound;
 }