planting, growing and watering a little less dependent than before
This commit is contained in:
@@ -34,6 +34,13 @@ public partial class PlantBehaviour2D : Node2D
|
||||
get => _field;
|
||||
set => _field = value;
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_state = PlantState.Planted;
|
||||
_currentPlantSprite = GetRandomSprite(_seeds);
|
||||
_currentPlantSprite.Visible = true;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -45,8 +52,6 @@ public partial class PlantBehaviour2D : Node2D
|
||||
return;
|
||||
|
||||
GetTree().CallGroup("PlantGrowing", VesnaAnimations.MethodName.PlayFarmingAnimation);
|
||||
// todo:
|
||||
// find out why the last plant stage is being skipped the second time around
|
||||
switch (_state)
|
||||
{
|
||||
case PlantState.None:
|
||||
|
||||
Reference in New Issue
Block a user