18 lines
508 B
C#
18 lines
508 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class BasicZombieBehaviour : Node
|
|
{
|
|
[Export] private AnimationTree _animationTree;
|
|
public void StartEating()
|
|
{
|
|
_animationTree.Set("parameters/conditions/eat",true);
|
|
_animationTree.Set("parameters/conditions/end_eat", false);
|
|
GD.Print("StartEating");
|
|
}
|
|
public void EndEating()
|
|
{
|
|
_animationTree.Set("parameters/conditions/eat", false);
|
|
_animationTree.Set("parameters/conditions/end_eat", true);
|
|
}
|
|
}
|