public GameObject instantiateFloor(Map.Floor floorType, Vector3 position, Quaternion rotation) { GameObject tileObject; switch (floorType) { case Map.Floor.dirt: tileObject = dirtFloor; break; case Map.Floor.swamp: tileObject = swampFloor; break; } return((GameObject)Instantiate(swampFloor, position, rotation)); //return Instantiate(dirtFloor, new Vector3(x / 2, y, -z / 2), Quaternion.Euler(-90, 0, 0)); }
public void AddFloor(Floor floor)//добавляет этаж { floors.Add(floor); floor.Init(); floorCounter++; }