public override void Execute() { VsnArgument variableName = args[0]; VsnArgument valueToAdd = args[1]; float oldValue = VsnSaveSystem.GetFloatVariable(variableName.GetReference()); float newValue = oldValue + valueToAdd.GetNumberValue(); VsnSaveSystem.SetVariable(variableName.GetReference(), newValue); VsnSaveSystem.Save(0); }
public override void Execute() { int intSlot = 0; if (args.Length > 0) { intSlot = (int)args[0].GetNumberValue(); } VsnSaveSystem.Save(intSlot); }