Ejemplo n.º 1
0
    /// <summary>
    /// Set up security protocols. See documentation for details
    /// </summary>
    public static void InitializeSecurity()
    {
        if (offlineMode)
        {
            return;
        }

        if (!connected)
        {
            Debug.LogError("Cannot InitializeSecurity when not connected!");
            return;
        }

        networkingPeer.EstablishEncryption();
    }