public void SetUp()
        {
            PrefAccessor <string> accessor = new StringPrefAccessor();
            var powerPrefsAccessor         = new PowerPrefsAccessor <string>(accessor);

            valueAccessor = new PowerPrefsKeyAccessor <string>(powerPrefsAccessor, TestKey);
        }
Exemple #2
0
        public void SetUp()
        {
            PrefAccessor <int> accessor = new IntPrefAccessor();

            powerPrefsAccessor = new PowerPrefsAccessor <int>(accessor);
        }
Exemple #3
0
 /// <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;
 }