示例#1
0
 private void Start()
 {
     MusicFactory1 = new MusicClipsFactory(Instantiate(clips1));
     MusicFactory2 = new MusicClipsFactory(Instantiate(clips2));
     MusicFactory3 = new MusicClipsFactory(Instantiate(clips3));
     MusicSpawner1 = new MusicClipsSpawner(MusicFactory1, this, audioController.AddPistaAudio);
     MusicSpawner2 = new MusicClipsSpawner(MusicFactory2, this, audioController.AddPistaAudioOtros);
     MusicSpawner3 = new MusicClipsSpawner(MusicFactory3, this, audioController.AddPistaAudioOtrosMas);
 }
示例#2
0
 public MusicClipsSpawner(MusicClipsFactory musicFactory, IAudioSystemView audioSystenView, AddSound addSound)
 {
     this.musicFactory    = musicFactory;
     this.audioSystenView = audioSystenView;
     add = addSound;
 }