Beispiel #1
0
 private void Update()
 {
     if (seIndexQueue.Count > 0)
     {
         NSEInfo info = seIndexQueue.Dequeue();
         PlaySEImpl(info.index, info.volume);
     }
 }
Beispiel #2
0
    public void PlaySE(int index, float volume = 1.0f)
    {
        NSEInfo info = new NSEInfo();

        info.index  = index;
        info.volume = volume;
        seIndexQueue.Enqueue(info);
    }