Exemplo n.º 1
0
    public void SetMovementTile(Tile target, List <Tile> path)
    {
        Owner.SetTile(target, false);

        WaypointMover mover = Owner.GetComponent <WaypointMover>();

        mover.MoveOnPath(path, 3);

        mover.OnMovementEnd += OnMoveEnd;
    }
Exemplo n.º 2
0
    void Run()
    {
        if (!target.Moving)
        {
            target.OnMoveToWayPoint += LogPos;


            target.OnWayPointreached += LogPos;

            target.OnMovementEnd += Ended;

            target.MoveOnPath(waypoints, Speed);
        }
    }