🎨 removed plant growing call group and replaced it with an event call. Made FarmingAnimation play on event.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user