public void OnBeforeSerialize() { if (Type == InstructionInputType.Value) { _value = new SerializedVariable(); _value.SetValue(Value); } }
public void OnAfterDeserialize() { if (Type == InstructionInputType.Value) { Value = _value.GetValue(); _value = null; } }
public void OnBeforeSerialize() { _data = new List <SerializedVariable>(_variables.Count); var builder = new StringBuilder(); foreach (var variable in _variables) { var data = new SerializedVariable(); data.SetVariable(variable); _data.Add(data); } }