Merge cont
This commit is contained in:
15
Scripts/DebugText.cs
Normal file
15
Scripts/DebugText.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
|
||||
public partial class DebugText : TextEdit
|
||||
{
|
||||
private Player _playerNode;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_playerNode = GetNode<Player>("/root/Main/Player");
|
||||
}
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
Text = $"Can Shoot: {_playerNode.CanShoot}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user