Exemplo n.º 1
0
 internal static void InstallEvents()
 {
     PlaybackStatusHasChanged_t.Install((PlaybackStatusHasChanged_t x) => {
         Action onPlaybackChanged = SteamMusic.OnPlaybackChanged;
         if (onPlaybackChanged != null)
         {
             onPlaybackChanged();
         }
         else
         {
         }
     }, false);
     VolumeHasChanged_t.Install((VolumeHasChanged_t x) => {
         Action <float> onVolumeChanged = SteamMusic.OnVolumeChanged;
         if (onVolumeChanged != null)
         {
             onVolumeChanged(x.NewVolume);
         }
         else
         {
         }
     }, false);
 }
 internal static void InstallEvents()
 {
     PlaybackStatusHasChanged_t.Install(x => OnPlaybackChanged?.Invoke());
     VolumeHasChanged_t.Install(x => OnVolumeChanged?.Invoke(x.NewVolume));
 }
	void OnPlaybackStatusHasChanged(PlaybackStatusHasChanged_t pCallback) {
		Debug.Log("[" + PlaybackStatusHasChanged_t.k_iCallback + " - PlaybackStatusHasChanged]");
	}