public override void OnPuzzleCreate(Puzzle puzzle) { var propPlace = puzzle.GetPlace("PropPlace"); Fountain fountain = null; if (Random(3) < 2) { if (CheckSpawn(puzzle, 10, 20, 30, 50)) { fountain = new Fountain("Fountain"); } } else { if (CheckSpawn(puzzle, 0, 10, 15, 30)) { fountain = new RedFountain("Fountain"); } } if (fountain != null) { propPlace.AddProp(fountain, Placement.Center); } }
public override void OnPuzzleCreate(Puzzle puzzle) { var propPlace = puzzle.GetPlace("PropPlace"); Fountain fountain = null; if (Random(3) < 2) { if (CheckSpawn(puzzle, 10, 20, 30, 50)) fountain = new Fountain("Fountain"); } else { if (CheckSpawn(puzzle, 0, 10, 15, 30)) fountain = new RedFountain("Fountain"); } if (fountain != null) propPlace.AddProp(fountain, Placement.Center); }