Пример #1
0
        public static IData ReadData(this NetworkReader reader)
        {
            int id = reader.ReadInt32();
            // do something with id

            SomeData someData = new SomeData();

            // read extra stuff depending on id here

            return(someData);
        }
 public void RpcDoSomething(SomeData data)
 {
     // empty
 }