using UnityEngine; public class TilePosition : GenericPosition { public override MapPosition Position { get { return Position; } set { if (Debug.isDebugBuild) { //Check if the tile is in the expected position Vector3 expectedPosition = new Vector3(Position.x, Position.y); if (transform.position != expectedPosition) { Debug.LogWarningFormat("{0}'s TilePosition is mismatched with its transform position.", gameObject.name); } } Position = value; } } }