Zondre
This commit is contained in:
parent
c266d22f58
commit
2eb65c3092
24 changed files with 566 additions and 49 deletions
|
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue