You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/Low Code/Variables/VariantValueChanger/VariantIncrementor.cs

22 lines
520 B

using Godot;
namespace Babushka.scripts.CSharp.Low_Code.Variables.VariantValueChanger;
public partial class VariantIncrementor : Node
{
[Export] private VariableResource _resource;
public void Increment()
{
int integerValue = _resource.Payload.AsInt32();
integerValue++;
_resource.Payload = integerValue;
}
public void Decrement()
{
int integerValue = _resource.Payload.AsInt32();
integerValue--;
_resource.Payload = integerValue;
}
}