public SetLevelPrefix ( short prefix ) : void | ||
prefix | short | |
Résultat | void |
public static void SetLevelPrefix(short prefix) { if (VerifyCanUseNetwork()) { networkingPeer.SetLevelPrefix(prefix); } }
/// <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); }