void HandleUnitMoved(object sender, EventArgs args) { UnitMovedEvent e = args as UnitMovedEvent; // convert MapTile path to BMapTile path BMapTile[] path = new BMapTile[e.path.Length]; for (int i = 0; i < e.path.Length; i++) { path[i] = GetBMapTile(e.path[i]); } // send movement path to BUnit for animation GetBUnit(e.unit).MoveAlongPath(path); bCameraMover.Focus(path.Last().transform.position); CleanMap(); }
private void HandleUnitMoved(UnitMovedEvent e) { turnComplete = true; }