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