コード例 #1
0
 private void OnPolicyResponse(GSPolicyResponse_t pPolicyResponse)
 {
     if (SteamGameServer.BSecure())
     {
         Debug.Log("SpaceWarServer is VAC Secure!");
     }
     else
     {
         Debug.Log("SpaceWarServer is not VAC Secure!");
     }
     Debug.Log("Game server SteamID:" + SteamGameServer.GetSteamID().ToString());
 }
コード例 #2
0
 void OnPolicyResponse(GSPolicyResponse_t PolicyResponses)
 {
     if (SteamGameServer.BSecure())
     {
         print("VAC is Secure");
     }
     else
     {
         print("not VAC is Secure");
     }
     print("SteamID:" + SteamGameServer.GetSteamID().ToString());
 }
コード例 #3
0
ファイル: CoopSteamManagerDS.cs プロジェクト: K07H/The-Forest
 private void OnPolicyResponse(GSPolicyResponse_t pPolicyResponse)
 {
     if (SteamGameServer.BSecure())
     {
         Debug.Log("The Forest Server is VAC Secure!");
     }
     else
     {
         Debug.Log("The Forest Server is not VAC Secure!");
     }
     Debug.Log("Game server SteamID:" + SteamGameServer.GetSteamID().ToString());
     this.Launch();
 }
コード例 #4
0
    //-----------------------------------------------------------------------------
    // Purpose: Callback from Steam when logon is fully completed and VAC secure policy is set
    //-----------------------------------------------------------------------------
    void OnPolicyResponse(GSPolicyResponse_t pPolicyResponse)
    {
#if USE_GS_AUTH_API
        // Check if we were able to go VAC secure or not
        if (SteamGameServer.BSecure())
        {
            Debug.Log("SpaceWarServer is VAC Secure!");
        }
        else
        {
            Debug.Log("SpaceWarServer is not VAC Secure!");
        }

        Debug.Log("Game server SteamID:" + SteamGameServer.GetSteamID().ToString());
#endif
    }