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); }
private void Start() { _currentHealth = healthTree; CurrentChristmasHealth?.Invoke(_currentHealth); }