예제 #1
0
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     m_Sprite          = SerializerKun.DesirializeObject <SpriteKun>(binaryReader);
     m_Color           = SerializerKun.DesirializeObject <ColorKun>(binaryReader);
     m_FlipX           = binaryReader.ReadBoolean();
     m_FlipY           = binaryReader.ReadBoolean();
     m_DrawMode        = (SpriteDrawMode)binaryReader.ReadInt32();
     m_MaskInteraction = (SpriteMaskInteraction)binaryReader.ReadInt32();
     m_SpriteSortPoint = (SpriteSortPoint)binaryReader.ReadInt32();
 }
예제 #2
0
 public SpriteRendererKun(SpriteRenderer spriteRenderer) : base(spriteRenderer)
 {
     componentKunType = ComponentKunType.SpriteRenderer;
     if (spriteRenderer != null)
     {
         sprite          = new SpriteKun(spriteRenderer.sprite);
         color           = new ColorKun(spriteRenderer.color);
         flipX           = spriteRenderer.flipX;
         flipY           = spriteRenderer.flipY;
         drawMode        = spriteRenderer.drawMode;
         maskInteraction = spriteRenderer.maskInteraction;
         spriteSortPoint = spriteRenderer.spriteSortPoint;
     }
 }
예제 #3
0
 public SpriteView(SpriteKun spriteKun)
 {
     m_spriteKun = spriteKun;
 }