﻿// Decompiled with JetBrains decompiler
// Type: SpriteMirror
// Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 19851F1B-4780-4223-BA01-2C20F2CD781E
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\Assembly-CSharp.dll

using UnityEngine;

public class SpriteMirror : SpriteRootMirror
{
  public Vector2 lowerLeftPixel;
  public Vector2 pixelDimensions;

  public override void Mirror(SpriteRoot s)
  {
    base.Mirror(s);
    this.lowerLeftPixel = ((Sprite) s).lowerLeftPixel;
    this.pixelDimensions = ((Sprite) s).pixelDimensions;
  }

  public override bool DidChange(SpriteRoot s)
  {
    if (base.DidChange(s))
      return true;
    if (Vector2.op_Inequality(((Sprite) s).lowerLeftPixel, this.lowerLeftPixel))
    {
      s.uvsInitialized = false;
      return true;
    }
    if (!Vector2.op_Inequality(((Sprite) s).pixelDimensions, this.pixelDimensions))
      return false;
    s.uvsInitialized = false;
    return true;
  }
}
