2025-07-22 14:08:35 +00:00
|
|
|
using Godot;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Godot.Collections;
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
[GlobalClass,Tool]
|
|
|
|
public partial class RichCounter:Node
|
|
|
|
{
|
|
|
|
[Export]
|
|
|
|
public UIText counter;
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
public Action onCountUp;
|
|
|
|
|
|
|
|
public void CountUp()
|
|
|
|
{
|
2025-07-25 08:13:54 +00:00
|
|
|
var edr = Unique<EatDaRichGame>.Get();
|
|
|
|
|
|
|
|
edr.numRich ++;
|
|
|
|
counter.locale = LocaleText.Create( edr.numRich + "" );
|
2025-07-22 14:08:35 +00:00
|
|
|
|
|
|
|
Action.Trigger( onCountUp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|