using UnityEngine; using System; public class UnitPosition : GenericPosition { public void JumpTo(MapPosition position) { this.Position = position; } public void StepTo(MapPosition position) { if(!position.IsAdjacent(this.Position)) { throw new Exception("The new position is not adjacent to the current position"); } this.Position = position; } }