public PositionAppointment(PositionScheduler scheduler, int time, Vector2Int position, bool isLast = false) { host = scheduler; Time = time; Position = position; IsLast = isLast; }
// Start is called before the first frame update void Start() { directions = new Vector2Int[] { new Vector2Int(1, 0), new Vector2Int(1, -1), new Vector2Int(0, -1), new Vector2Int(-1, -1), new Vector2Int(-1, 0), new Vector2Int(-1, 1), new Vector2Int(0, 1), new Vector2Int(1, 1) }; Obstacles = new bool[board.Dimensions.x, board.Dimensions.y]; ObstacleObjects = new GameObject[board.Dimensions.x, board.Dimensions.y]; PathMarks = new List <GameObject>(); maxDistance = board.Dimensions.y * board.Dimensions.x; Scheduler = new PositionScheduler(maxDistance); Scheduler.Board = board; }
// Start is called before the first frame update void Start() { PositionScheduler = new PositionScheduler(8 * 8); }