public void SetUp() { PrefAccessor <string> accessor = new StringPrefAccessor(); var powerPrefsAccessor = new PowerPrefsAccessor <string>(accessor); valueAccessor = new PowerPrefsKeyAccessor <string>(powerPrefsAccessor, TestKey); }
public void SetUp() { PrefAccessor <int> accessor = new IntPrefAccessor(); powerPrefsAccessor = new PowerPrefsAccessor <int>(accessor); }
/// <summary> /// Create a PowerPrefsKeyAccessor which can get and set values of type ValueT to and from PlayerPrefs, with the /// key being stored. /// </summary> /// <param name="accessor">Accessor for type ValueT.</param> /// <param name="prefKey">The key to get and set values for.</param> public PowerPrefsKeyAccessor(PowerPrefsAccessor <ValueT> accessor, string prefKey) { this.accessor = accessor; this.prefKey = prefKey; }