Exemple #1
0
 public virtual void Setup(GridObject gridObject, Direction dir, FactoryNeighbors customNeighbors = null)
 {
     transform.localPosition = new Vector3(0.5f, 0.5f);
     transform.rotation      = Position.GetRotationFromDirection(dir);
     Neighbors = customNeighbors ?? new FactoryNeighbors(gridObject, dir);
     Dir       = dir;
 }
Exemple #2
0
 public void CustomNeighbors(GridObject north, GridObject east, GridObject south, GridObject west, Direction dir)
 {
     Neighbors = new FactoryNeighbors(north, east, south, west, dir);
 }