Exemplo 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);
 }
Exemplo 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;
 }