Esempio n. 1
0
 public bool Initialize()
 {
     this._challengeResponse = new CommunityExpress.OnChallengeResponseFromSteam(this.OnChallengeResponseCallback);
     if (!CommunityExpress.SteamUnityAPI_Init(Marshal.GetFunctionPointerForDelegate((Delegate)this._challengeResponse)))
     {
         return(false);
     }
     this._steamAPIDebugTextHook = new CommunityExpress.OnSteamAPIDebugTextHook(this.OnSteamAPIDebugTextHookCallback);
     CommunityExpress.SteamUnityAPI_SetWarningMessageHook(Marshal.GetFunctionPointerForDelegate((Delegate)this._steamAPIDebugTextHook));
     this.ValidateLicense();
     return(true);
 }
Esempio n. 2
0
 public bool Initialize()
 {
   this._challengeResponse = new CommunityExpress.OnChallengeResponseFromSteam(this.OnChallengeResponseCallback);
   if (!CommunityExpress.SteamUnityAPI_Init(Marshal.GetFunctionPointerForDelegate((Delegate) this._challengeResponse)))
     return false;
   this._steamAPIDebugTextHook = new CommunityExpress.OnSteamAPIDebugTextHook(this.OnSteamAPIDebugTextHookCallback);
   CommunityExpress.SteamUnityAPI_SetWarningMessageHook(Marshal.GetFunctionPointerForDelegate((Delegate) this._steamAPIDebugTextHook));
   this.ValidateLicense();
   return true;
 }