예제 #1
0
 void Awake()
 {
     DontDestroyOnLoad(gameObject);
     RegisterPacketType.RegisterPackets((customType, code, serializeMethod, deserializeMethod) =>
     {
         return(PhotonPeer.RegisterType(customType, code, (arg) => serializeMethod?.Invoke(arg), (arg) => deserializeMethod?.Invoke(arg)));
     });
 }
예제 #2
0
 protected override void Setup()
 {
     RegisterPacketType.RegisterPackets(Protocol.TryRegisterCustomType);
 }