Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How can I get index number of message in OnDeserialize?

$
0
0
I want to use QOS Reliable channel (unreliable order) to syncrhoniztion variables.
I wrote some code to sync by mask, but I need to know outgoing order index of message. How can I get that?
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. using UnityEngine.Networking;
  4. using System;
  5.  
  6. public abstract class NSyncVar
  7. {
  8.     public NSyncVar parent { get; private set; }
  9.     public bool isDerty { get; protected set; }
  10.     public virtual void SetAsDerty()
  11.     {
  12.         isDerty =...
How can I get index number of message in OnDeserialize?

Viewing all articles
Browse latest Browse all 16796

Trending Articles