示例#1
0
 public void Move(Command type, Coordinate nextPos)
 {
     MoveMusic.Play();
     transform.DOMove(Helper.GetHandPos(nextPos.x, nextPos.y), Config.RoundTime);
     PickedParts.ForEach(x =>
     {
         if (x.GetComponent <PartController>().type == ComponentType.Normal)
         {
             Vector3 newPos = Helper.GetPartPos(nextPos.x, nextPos.y);
             newPos.y       = 1.19f;
             x.transform.DOMove(newPos, Config.RoundTime);
         }
         else
         {
             x.transform.DOMove(Helper.GetPartPos(nextPos.x, nextPos.y), Config.RoundTime);
         }
     });
     WorldMapController.AfterMove(currentPos, nextPos, thisType);
     currentPos = nextPos;
 }