fixed rain
This commit is contained in:
@@ -9,14 +9,21 @@ public partial class Main : Node2D {
|
||||
[Export] public int BrushSize = 5;
|
||||
[Export] public float TextureResolution = 0.5f;
|
||||
[Export] public int ChunksPerAxis = 2;
|
||||
[Export] public float RainAmount = 0;
|
||||
[Export] public float rainAmount = 0;
|
||||
|
||||
public static Main Instance;
|
||||
public Level Level;
|
||||
|
||||
private TextureRect mLevelDrawer;
|
||||
private bool enableRain;
|
||||
private float rainAmount;
|
||||
|
||||
public float RainAmount {
|
||||
get => rainAmount;
|
||||
set {
|
||||
rainAmount = value;
|
||||
Level?.SetRainAmount(rainAmount);
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Ready() {
|
||||
Level = new Level(this, (int)(GetViewportRect().Size.X * TextureResolution),
|
||||
|
||||
Reference in New Issue
Block a user