newlon/scripts/zombies/behaviours/HoboBehaviour.cs
2025-07-11 22:35:36 +05:00

17 lines
475 B
C#

using Godot;
namespace Newlon.Components.Zombies.Behaviours;
public partial class HoboBehaviour : Node
{
[Export] private EatBox _eatBox;
[Export] private AnimationTree _animationTree;
public bool isEating => _eatBox.isEating;
public bool canDestroyed = false;
public void Trashed()
{
canDestroyed = true;
((AnimationNodeStateMachinePlayback)_animationTree.Get("parameters/Tree/playback")).Travel("hobo_zombie_can_destroy");
_eatBox._damage.SetMult(3.0f);
}
}