Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="binaryReader"></param>
        public void OnMessageEvent(BinaryReader binaryReader)
        {
            var textureKunPacket = new TexturePlayer.TextureKunPacket();

            textureKunPacket.Deserialize(binaryReader);
            textureKuns  = textureKunPacket.textureKuns;
            textureViews = new TextureView[textureKuns.Length];
            textureNames = new string[textureKuns.Length];
            for (var i = 0; i < textureKuns.Length; i++)
            {
                textureViews[i] = new TextureView(textureKuns[i]);
                textureNames[i] = textureKuns[i].name;
            }
        }