Exemple #1
0
	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var propPlace = puzzle.GetPlace("PropPlace");

		int propId;
		uint color;

		for (int i = 1; i <= 3; ++i)
		{
			GetRandom(puzzle, out propId, out color);
			var patch = new HerbPatch(propId, "Herb" + i, color);
			propPlace.AddProp(patch, Placement.Herb);
		}
	}
Exemple #2
0
    public override void OnPuzzleCreate(Puzzle puzzle)
    {
        var propPlace = puzzle.GetPlace("PropPlace");

        int  propId;
        uint color;

        for (int i = 1; i <= 3; ++i)
        {
            GetRandom(puzzle, out propId, out color);
            var patch = new HerbPatch(propId, "Herb" + i, color);
            propPlace.AddProp(patch, Placement.Herb);
        }
    }