void HandlePacket(GuitarPacket packet)
 {
     UpdateTopFrets?.Invoke(packet.TopFrets);
     UpdateBottomFrets?.Invoke(packet.BottomFrets);
     UpdateStrum?.Invoke(packet.Strum);
     UpdateButtons?.Invoke(packet.Buttons);
     UpdateMotion?.Invoke(packet.Motion);
     UpdateSlider?.Invoke(packet.Slider);
 }
Example #2
0
 private void Start()
 {
     _currentHealth = healthTree;
     CurrentChristmasHealth?.Invoke(_currentHealth);
 }