Exemplo n.º 1
0
        public void Save()
        {
            _saveVersion = Dialog.SaveVersion;
            _SaveData    = _dialog.Save();
#if UNITY_EDITOR
            UnityEditor.EditorUtility.SetDirty(this);

            UnityEditor.EditorUtility.DisplayDialog("Save", "Dialog Save Successfully!", "OK");
#endif
        }
Exemplo n.º 2
0
 private void WriteDialog(Dialog dialog, BinaryWriter w)
 {
     w.Write(dialog == null);
     if (dialog != null)
     {
         byte[] datas = dialog.Save();
         int    count = datas.Length;
         w.Write(count);
         w.Write(datas);
     }
 }