Broken sunflower

This commit is contained in:
Фёдор Веселов 2024-09-17 00:09:49 +05:00
commit 83d36f53b2
6 changed files with 211 additions and 6 deletions

View file

@ -0,0 +1,18 @@
using Godot;
using System;
public partial class SunflowerBehaviour : Node
{
private AnimationTree _tree;
public override void _Ready()
{
_tree = GetNode<AnimationTree>("../AnimationTree");
}
public void Timeout()
{
_tree.Set("parameters/conditions/produce",true);
}
}