Refactor collectable components to C# and update resource scripts for consistency
This commit is contained in:
@@ -28,9 +28,9 @@ public partial class RequirementComponent : Node
|
||||
}
|
||||
}
|
||||
|
||||
private void OnCollected(Variant amount, CollectableType type, Node2D body)
|
||||
private void OnCollected(float amount, CollectableType type, Node2D body)
|
||||
{
|
||||
AddProgress(amount.As<int>());
|
||||
AddProgress((int)amount);
|
||||
}
|
||||
|
||||
private void AddProgress(int amount = 1)
|
||||
|
Reference in New Issue
Block a user