コード例 #1
0
    public void SelectKey(int key)
    {
        sounds.PlayNote(key, 95, 1.0f);
        PianoSoundItem item = itemPool.GetObject();

        item.Initialize(0.0f, 0.0f, key, 0, this);
        items.Add(item);
    }
コード例 #2
0
 public void Activate(EditorController edit, List <PianoSound> sounds)
 {
     editor = edit;
     CurrentState.ignoreAllInput = true;
     foreach (PianoSound sound in sounds)
     {
         PianoSoundItem item = itemPool.GetObject();
         item.Initialize(sound.duration, sound.delay, sound.pitch, sound.volume, this);
         items.Add(item);
     }
 }