public override void addTile(Floor_ST other) { Vector3 distance = other.transform.position - transform.position; int index = determineLocation(distance); surroundings[index] = other; }
private void makeFloorTile(Vector3 mapCoordFloat, Room_ST room) { Floor_ST newFloor = Instantiate(floorPrefab) as Floor_ST; map[(int)mapCoordFloat.x, (int)mapCoordFloat.z] = newFloor; newFloor.name = "Floor " + mapCoordFloat.x + ", " + mapCoordFloat.z; newFloor.setIndex((int)mapCoordFloat.x, (int)mapCoordFloat.z); newFloor.transform.parent = room.transform; newFloor.transform.localPosition = new Vector3(mapCoordFloat.x - size * 0.5f + 0.5f, 0, mapCoordFloat.z - size * 0.5f + 0.5f); }
public virtual void addTile(Floor_ST other) { }