public override float GetNumberValue()
 {
     if (variableReferenceValue[0] == '#')
     {
         return(SpecialCodes.InterpretFloat(variableReferenceValue));
     }
     return(VsnSaveSystem.GetFloatVariable(variableReferenceValue));
 }
        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 void LoadVolume()
 {
     SetVolume(VsnSaveSystem.GetFloatVariable("audio", 1f));
 }