Title transition

This commit is contained in:
Steven Long
2023-09-10 22:16:09 -07:00
parent ebf9f6c117
commit 81a56986ac
29 changed files with 604 additions and 155 deletions

20
Levels/Scripts/Door.cs Normal file
View File

@@ -0,0 +1,20 @@
using Godot;
public partial class Door : MeshInstance3D
{
[Export]
public AnimationPlayer AnimationPlayer { get; set; }
[Export]
private int _numberOfHits = 10;
private void OnDoorHit(Node3D node)
{
_numberOfHits--;
GD.Print(_numberOfHits);
AnimationPlayer.Play("HitFlash");
if (_numberOfHits == 0)
QueueFree();
}
}