/// <summary> /// Gets path on board /// </summary> /// <returns></returns> public List <PathElement> GetPath() { List <PathElement> path = new List <PathElement>(); foreach (string pathElement in pathConfig.path) { BoardPointController controller = boardPointControllers.Find(x => x.name.Contains(pathElement)); controller.ChangeState(BoardPointType.Path); controller.SetVisible(true); path.Add(controller); } return(path); }
/// <summary> /// Invoked after tile becoms occupied /// </summary> /// <param name="point">Tile on board</param> public void OnPointStartOccupied(BoardPointController point) { point.ChangeState(BoardPointType.Occupied); }