示例#1
0
 public void OnBeforeSerialize()
 {
     if (Type == InstructionInputType.Value)
     {
         _value = new SerializedVariable();
         _value.SetValue(Value);
     }
 }
示例#2
0
 public void OnAfterDeserialize()
 {
     if (Type == InstructionInputType.Value)
     {
         Value  = _value.GetValue();
         _value = null;
     }
 }
示例#3
0
        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);
            }
        }