SetLevelPrefix() public method

public SetLevelPrefix ( short prefix ) : void
prefix short
return void
Ejemplo n.º 1
0
 public static void SetLevelPrefix(short prefix)
 {
     if (VerifyCanUseNetwork())
     {
         networkingPeer.SetLevelPrefix(prefix);
     }
 }
Ejemplo n.º 2
0
    /// <summary>
    /// Adds a level prefix to all PhotonViews. If any other client uses a differnt prefix, their messages will be dropped.
    /// They will also drop your messages! Be aware that PUN never resets this value, you'll have to do so yourself.
    /// </summary>
    /// <param name="prefix"></param>
    public static void SetLevelPrefix(int prefix)
    {
        if (!VerifyCanUseNetwork())
        {
            return;
        }

        networkingPeer.SetLevelPrefix(prefix);
    }