filesystem rework
This commit is contained in:
parent
64323290cc
commit
2905db3dce
174 changed files with 93 additions and 353 deletions
17
scripts/entities/zombies/behaviours/HoboBehaviour.cs
Normal file
17
scripts/entities/zombies/behaviours/HoboBehaviour.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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("Destroy");
|
||||
GetParent<Entity>().LocalTimescale *= 3;
|
||||
}
|
||||
}
|
||||
1
scripts/entities/zombies/behaviours/HoboBehaviour.cs.uid
Normal file
1
scripts/entities/zombies/behaviours/HoboBehaviour.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c5v2og85t7s6j
|
||||
Loading…
Add table
Add a link
Reference in a new issue