Пример #1
0
 internal static void InstallEvents()
 {
     BroadcastUploadStart_t.Install((BroadcastUploadStart_t x) => {
         Action onBroadcastStarted = SteamVideo.OnBroadcastStarted;
         if (onBroadcastStarted != null)
         {
             onBroadcastStarted();
         }
         else
         {
         }
     }, false);
     BroadcastUploadStop_t.Install((BroadcastUploadStop_t x) => {
         Action <BroadcastUploadResult> onBroadcastStopped = SteamVideo.OnBroadcastStopped;
         if (onBroadcastStopped != null)
         {
             onBroadcastStopped(x.Result);
         }
         else
         {
         }
     }, false);
 }
	void OnBroadcastUploadStop(BroadcastUploadStop_t pCallback) {
		Debug.Log("[" + BroadcastUploadStop_t.k_iCallback + " - BroadcastUploadStop] - " + pCallback.m_eResult);
	}
Пример #3
0
 internal static void InstallEvents()
 {
     BroadcastUploadStart_t.Install(x => OnBroadcastStarted?.Invoke());
     BroadcastUploadStop_t.Install(x => OnBroadcastStopped?.Invoke(x.Result));
 }