Пример #1
0
        public void NetDataManager(NetData data)
        {
            switch ((NetStatus)data.ReadByte())
            {
            case NetStatus.Create:
                string     n = data.ReadString();
                Vector3    p = data.ReadVector3();
                Quaternion r = data.ReadQuaternion();
                Manager.CreateGameObject(prefabId, p, r);
                break;

            case NetStatus.Remain:
                Remain(data.ReadFloat());
                break;

            case NetStatus.End:
                End();
                break;
            }
        }