Plants animation now supports timescale

This commit is contained in:
Rendo 2025-07-07 23:14:32 +05:00
commit e7a9860a54
18 changed files with 141 additions and 60 deletions

View file

@ -2,18 +2,11 @@ using Godot;
namespace Newlon.Components.Plants.Behaviours;
public partial class SunflowerBehaviour : Node
public partial class SunflowerBehaviour : BaseBehaviour
{
private AnimationTree _tree;
public override void _Ready()
{
_tree = GetNode<AnimationTree>("../AnimationTree");
}
public void Timeout()
{
_tree.Set("parameters/conditions/produce", true);
_tree.Set("parameters/Tree/conditions/produce", true);
}
}