GlobalFloat

class GlobalFloat : GlobalVariableBase<float>

A GlobalVariable representing a float.

Methods

void Increment(float amount)

For incrementing or decrementing the value via UnityEvent.

void LoadValue(ISavestateReader reader, string key)

Loads the value for this GlobalVariable by using the provided ISavesateReader and key. Override this in a GlobalVariable class to allow it to do so.

void SaveValue(ISavestateWriter writer, string key)

Saves the value of this GlobalVariable by using the provided ISavesateWriter and key. Override this in a GlobalVariable class to allow it to do so.