Пример #1
0
 public Tile()
 {
     X       = 0;
     Y       = 0;
     UvCords = new Vector2[0];
     Rect    = new Rect();
     Pathing = TilePathing.BaseUnwalkable;
 }
Пример #2
0
    public void CopyFrom(Tile other)
    {
        X       = other.X;
        Y       = other.Y;
        Rect    = other.Rect;
        Pathing = other.Pathing;

        UvCords = new Vector2[other.UvCords.Length];
        for (int i = 0; i < UvCords.Length; i++)
        {
            UvCords[i] = other.UvCords[i];
        }
    }