🎨 removed plant growing call group and replaced it with an event call. Made FarmingAnimation play on event.

This commit is contained in:
2025-10-31 12:07:05 +01:00
parent 759933c1cd
commit 6194988bf0
6 changed files with 31 additions and 9 deletions
@@ -39,7 +39,6 @@ public partial class PlantBehaviour2D : Node2D
{
if (_state == PlantState.None)
{
GetTree().CallGroup("PlantGrowing", VesnaAnimations.MethodName.PlayFarmingAnimation);
_state = PlantState.Planted;
_currentPlantSprite = GetRandomSprite(_seeds);
_currentPlantSprite.Visible = true;
@@ -52,7 +51,6 @@ public partial class PlantBehaviour2D : Node2D
public void Grow()
{
GetTree().CallGroup("PlantGrowing", VesnaAnimations.MethodName.PlayFarmingAnimation);
GrowPlant();
}