コード例 #1
0
    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);
        }
    }
コード例 #2
0
ファイル: eventprop_fountain.cs プロジェクト: tkiapril/aura
	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);
	}