public override void SerializeState(IStateSnapshot stateSnapshot) { this.jsonSerializer.SerializeState(stateSnapshot); NaaraPlayerPrefs.SetString(prefsKey, this.jsonSerializer.jsonGameSerializedString); }
public override T DeserializeState() { this.jsonDeserializer = new LocalJSONStateDeserializer <T>(NaaraPlayerPrefs.GetString(prefsKey)); return(this.jsonDeserializer.DeserializeState()); }