Example #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);
    }
Example #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);
    }
Example #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);
    }