feat: removed crouch and added a UI for available jumps
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m40s

This commit is contained in:
2025-07-06 15:11:25 +02:00
parent ef16d6c83f
commit e4880d42f9
5 changed files with 81 additions and 20 deletions

View File

@ -0,0 +1,26 @@
using Godot;
using System;
public partial class PlayerUi : CanvasLayer
{
private TextureRect[] _dashIcons = new TextureRect[3];
public override void _Ready()
{
base._Ready();
_dashIcons[0] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash1");
_dashIcons[1] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash2");
_dashIcons[2] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash3");
}
public void SetNumberOfDashesLeft(int numberOfDashes)
{
int index = 1;
foreach (var dashIcon in _dashIcons)
{
dashIcon.SetVisible(index <= numberOfDashes);
index++;
}
}
}