|
@@ -1,10 +1,11 @@
|
|
|
using System;
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
+using Blue;
|
|
|
using UnityEngine;
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
-public class UIEditorPanel : MonoBehaviour, EventObserver
|
|
|
+public class UIEditorPanel : AbstractController, EventObserver
|
|
|
{
|
|
|
|
|
|
public event Action<GameObject> OnClickRemoveBtn;
|
|
@@ -228,7 +229,14 @@ public class UIEditorPanel : MonoBehaviour, EventObserver
|
|
|
SaveBtn.onClick.AddListener(() =>
|
|
|
{
|
|
|
if (MaterialObj == null)
|
|
|
+ {
|
|
|
+ InstantiateCommand Command = new InstantiateCommand(
|
|
|
+ InstantiateSystem.Instance.BlueObject.WarningPopUp,
|
|
|
+ "保存失败\n服务器异常,请稍后重试");
|
|
|
+ CommandSystem.Instance.Send(Command);
|
|
|
+
|
|
|
return;
|
|
|
+ }
|
|
|
GameManager.Instance.SaveSpoitObjs();
|
|
|
|
|
|
});
|