19 lines
333 B
C#
19 lines
333 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class SunflowerBehaviour : Node
|
|
{
|
|
private AnimationPlayer _player;
|
|
|
|
public override void _Ready()
|
|
{
|
|
_player = GetNode<AnimationPlayer>("../AnimationPlayer");
|
|
}
|
|
|
|
public void Timeout()
|
|
{
|
|
_player.Play("produce");
|
|
_player.Queue("idle");
|
|
}
|
|
|
|
}
|