|
|
@@ -65,7 +65,9 @@ public class HunterGameSettleView : MonoBehaviour
|
|
|
AudioMgr.ins.PlayBtn();
|
|
|
if (GameAssistUI.ins) GameAssistUI.ins.recordPlayerRecordsWhenGameTryAgain();
|
|
|
if (GlobalData.pkMatchType == PKMatchType.OnlinePK) {
|
|
|
- PKMatchingView.Create().InitForInviterToTryAgain();
|
|
|
+ PKMatchingView view = PKMatchingView.Create();
|
|
|
+ view.InitForInviterToTryAgain();
|
|
|
+ view.eventOnRejectPKInvite += GoHomeLogic;
|
|
|
} else {
|
|
|
SceneManager.LoadScene("GameChallenge", LoadSceneMode.Single);
|
|
|
}
|
|
|
@@ -73,6 +75,10 @@ public class HunterGameSettleView : MonoBehaviour
|
|
|
|
|
|
public void BackHome() {
|
|
|
AudioMgr.ins.PlayBtn();
|
|
|
+ GoHomeLogic();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void GoHomeLogic() {
|
|
|
SceneManager.LoadScene("Home", LoadSceneMode.Single);
|
|
|
HomeMgr.DestroyCacheViews();
|
|
|
}
|