18 lines
313 B
C#
18 lines
313 B
C#
using Godot;
|
|
|
|
[GlobalClass]
|
|
[Tool]
|
|
public partial class MoneyReward : RewardResource
|
|
{
|
|
[Export] public int Cost;
|
|
public override PackedScene GetPreview()
|
|
{
|
|
return Scene;
|
|
}
|
|
public override bool Redeem()
|
|
{
|
|
PlayerProgress.Instance.Money += Cost;
|
|
return true;
|
|
}
|
|
|
|
}
|