|
@@ -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("网络发生意外!");
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|