lvjincheng há 4 anos atrás
pai
commit
63d22ec3d9
1 ficheiros alterados com 3 adições e 2 exclusões
  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_ += () => {
             if (this && this.gameObject) {
-                DestroyImmediate(this.gameObject);
-                PopupMgr.ins.ShowTip("某方退出或掉线,联机游戏终止!");
+                Destroy(this.gameObject);
+                Destroy(socketPlayer.gameObject);
+                PopupMgr.ins.ShowTip("网络发生意外!");
             }
         };
     }