예제 #1
0
    protected virtual bool TryMove(LinkedList <IMoveGrid> moveRoute)
    {
        ActorMoveComponent move = Entity.GetComponent <ActorMoveComponent>();

        if (move != null)
        {
            if (move.StartMove(moveRoute))
            {
                move.OnMoveCompleteEvent += OnMoveCompleteEvent;
                return(true);
            }
        }
        return(false);
    }
예제 #2
0
    private bool DoActionMove(TilePoint targetPos)
    {
        ActorMoveComponent move = Entity.GetComponent <ActorMoveComponent>();

        if (move != null)
        {
            if (move.StartMove(targetPos))
            {
                move.OnMoveCompleteEvent += OnMoveCompleteEvent;
                return(true);
            }
        }
        return(false);
    }
예제 #3
0
    protected virtual bool TryMove(TilePoint targetPos)
    {
        ActorMoveComponent move = Entity.GetComponent <ActorMoveComponent>();

        if (move != null)
        {
            if (move.StartMove(targetPos, m_tempTargeters))
            {
                move.OnMoveCompleteEvent += OnMoveCompleteEvent;
                return(true);
            }
        }
        return(false);
    }