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); }
private bool DoActionMove(TilePoint targetPos) { ActorMoveComponent move = Entity.GetComponent <ActorMoveComponent>(); if (move != null) { if (move.StartMove(targetPos)) { move.OnMoveCompleteEvent += OnMoveCompleteEvent; return(true); } } return(false); }
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); }