コード例 #1
0
 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);
 }
コード例 #2
0
 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));
 }