public override void MoveToInstant(SubMove subMove, Move contextMove) { if (subMove.GetExtraData() != null) { SetFacingDir((Vector2Int)subMove.GetExtraData()); //the direction that the thing that moved is on, PROBABLY. } else { //SetFacingDir((Vector2Int) subMove.dir); } SnapTo(subMove.destinationNode); }
public override void MoveTo(SubMove subMove, Move contextMove) { if (subMove.GetExtraData() != null) { SetFacingDir((Vector2Int)subMove.GetExtraData()); //the direction that the thing that moved is on, PROBABLY. } else { //SetFacingDir((Vector2Int) subMove.dir); } simpleLerpCoroutine = StartCoroutine(SimpleMoveLerp(subMove.destinationNode, 10, contextMove)); }