Improve flash
This commit is contained in:
parent
7614b12076
commit
0fc71532e2
5 changed files with 8 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue