public PositionAppointment(PositionScheduler scheduler, int time, Vector2Int position, bool isLast = false)
 {
     host     = scheduler;
     Time     = time;
     Position = position;
     IsLast   = isLast;
 }
Exemple #2
0
    // 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;
    }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     PositionScheduler = new PositionScheduler(8 * 8);
 }