lvjincheng 4 年之前
父節點
當前提交
63d22ec3d9
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Assets/BowArrow/Scripts/View/PKMatchingView.cs

+ 3 - 2
Assets/BowArrow/Scripts/View/PKMatchingView.cs

@@ -47,8 +47,9 @@ public class PKMatchingView : MonoBehaviour
         };
         };
         socketPlayer.onDestroy_ += () => {
         socketPlayer.onDestroy_ += () => {
             if (this && this.gameObject) {
             if (this && this.gameObject) {
-                DestroyImmediate(this.gameObject);
-                PopupMgr.ins.ShowTip("某方退出或掉线,联机游戏终止!");
+                Destroy(this.gameObject);
+                Destroy(socketPlayer.gameObject);
+                PopupMgr.ins.ShowTip("网络发生意外!");
             }
             }
         };
         };
     }
     }