Improve flash

This commit is contained in:
Rendo 2025-06-26 21:18:59 +05:00
commit 0fc71532e2
5 changed files with 8 additions and 5 deletions

View file

@ -26,7 +26,7 @@ public partial class FlashComponent : CanvasGroup
_tween = CreateTween();
Action<float> action = SetAmount;
_tween.TweenMethod(Callable.From(action),1.0f,0.0f,_flashDuration);
_tween.TweenMethod(Callable.From(action),0.8f,0.0f,_flashDuration);
}
private void SetAmount(float amount)

View file

@ -13,7 +13,7 @@ public partial class GameRegistry : Node
public override void _Ready()
{
//Plant init
string[] plantFiles = DirAccess.GetFilesAt(PLANT_RESOURCE_PATH);
string[] plantFiles = ResourceLoader.ListDirectory(PLANT_RESOURCE_PATH);
foreach (var file in plantFiles)
{
@ -26,7 +26,7 @@ public partial class GameRegistry : Node
}
//Zombie init
string[] zombieFiles = DirAccess.GetFilesAt(ZOMBIE_RESOURCE_PATH);
string[] zombieFiles = ResourceLoader.ListDirectory(ZOMBIE_RESOURCE_PATH);
foreach (var file in zombieFiles)
{