Esempio n. 1
0
        void Awake()
        {
            instance = this;

            Client = new Client();
            Client.PacketProcessor.SubscribeReusable <Movement, NebulaConnection>(OnPlayerMovement);
            Client.PacketProcessor.SubscribeReusable <PlayerAnimationUpdate, NebulaConnection>(OnPlayerAnimationUpdate);
        }
Esempio n. 2
0
        void Awake()
        {
            instance = this;

            Client = new Client();
            Client.PacketProcessor.SubscribeReusable <Movement>(OnPlayerMovement);
            Client.PacketProcessor.SubscribeReusable <PlayerAnimationUpdate>(OnPlayerAnimationUpdate);
            Client.PacketProcessor.SubscribeReusable <RemotePlayerJoined>(OnRemotePlayerJoined);
            Client.PacketProcessor.SubscribeReusable <PlayerDisconnected>(OnRemotePlayerDisconnect);
        }