Ejemplo n.º 1
0
 public void GeneratePulse(Note note)
 {
     if (!this.spawnedNotes.Contains(note))
     {
         Pulse pulse = Instantiate(this.PulsePrefab, this.PulseContainer, false);
         pulse.Init(note, this.PulseOrigin.position, this.PulseDestination.position);
         pulse.OnKill      += this.HandlePulseKilled;
         pulse.OnStartPump += this.HandlePulseStartPump;
         pulse.OnEarly     += this.HandlePulseEarly;
         pulse.OnLate      += this.HandlePulseLate;
         this.pulses.Add(pulse);
         this.spawnedNotes.Add(note);
     }
 }