소스 검색

游戏结算监听接口,pk模式隐藏水果大人入口

lvjincheng 2 년 전
부모
커밋
2c58610ea1

+ 11 - 0
Assets/BowArrow/Scripts/Expand/GameOverInterface.cs

@@ -0,0 +1,11 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class GameOverInterface
+{
+    public static void OnGameOver(int gameType)
+    {
+        Debug.Log("OnGameOver! GameType:" + gameType);
+    }
+}

+ 11 - 0
Assets/BowArrow/Scripts/Expand/GameOverInterface.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bc0295d6d0d23ef4d8c81649183b7322
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 0
Assets/BowArrow/Scripts/GameChallenge/Views/HunterGameSettleView.cs

@@ -44,6 +44,7 @@ public class HunterGameSettleView : MonoBehaviour
             if (SocketPlayer.ins) SocketPlayer.ins.isGameOver = true;
             if (SocketPlayer.ins) SocketPlayer.ins.isGameOver = true;
         }
         }
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
+        GameOverInterface.OnGameOver(GameMgr.gameType);
     }
     }
 
 
     void CheckOpenNextLevelBtn(ChallengeGameMode gameMode, string gameRes) {
     void CheckOpenNextLevelBtn(ChallengeGameMode gameMode, string gameRes) {

+ 1 - 0
Assets/BowArrow/Scripts/View/Home/ChallengeOptionView.cs

@@ -19,6 +19,7 @@ public class ChallengeOptionView : JCUnityLib.ViewBase, MenuBackInterface
             transform.Find("EntryList/Item3").gameObject.SetActive(false);
             transform.Find("EntryList/Item3").gameObject.SetActive(false);
         }
         }
         transform.Find("EntryList/Item4").gameObject.SetActive(GlobalDataTemp.pkMatchType == PKMatchType.None);
         transform.Find("EntryList/Item4").gameObject.SetActive(GlobalDataTemp.pkMatchType == PKMatchType.None);
+        transform.Find("BtnFruitMaster").gameObject.SetActive(GlobalDataTemp.pkMatchType == PKMatchType.None);
     }
     }
 
 
     void Start() {
     void Start() {

+ 1 - 0
Assets/BowArrow/Scripts/View/PKGameSettleView.cs

@@ -51,6 +51,7 @@ public class PKGameSettleView : MonoBehaviour
             if (SocketPlayer.ins) SocketPlayer.ins.isGameOver = true;
             if (SocketPlayer.ins) SocketPlayer.ins.isGameOver = true;
         }
         }
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
+        GameOverInterface.OnGameOver(GameMgr.gameType);
     }
     }
 
 
     public void OnClick_Back() {
     public void OnClick_Back() {

+ 1 - 0
Assets/BowArrow/Scripts/View/TimeLimitGameSettleView.cs

@@ -39,6 +39,7 @@ public class TimeLimitGameSettleView : MonoBehaviour
 
 
         AudioMgr.ins.PlayWin();
         AudioMgr.ins.PlayWin();
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
         SimulateMouseController.ins?.AddOpenLocker("NotGame");
+        GameOverInterface.OnGameOver(GameMgr.gameType);
     }
     }
 
 
     public void OnClick_Back() {
     public void OnClick_Back() {

+ 2 - 0
Assets/DuckHunter/Scripts/GameManager.cs

@@ -392,6 +392,8 @@ namespace DuckHunter
             }
             }
 
 
             SaveBestScore();
             SaveBestScore();
+
+            GameOverInterface.OnGameOver(GameMgr.gameType);
         }
         }
 
 
         void ShowGamePass()
         void ShowGamePass()

+ 2 - 0
Assets/FruitMaster/Scripts/OverallLogics.cs

@@ -170,6 +170,8 @@ public class OverallLogics : MonoBehaviour
             Logo.gameObject.SetActive(false);
             Logo.gameObject.SetActive(false);
             Stains.gameObject.SetActive(false);
             Stains.gameObject.SetActive(false);
         }
         }
+
+        GameOverInterface.OnGameOver(GameMgr.gameType);
     }
     }
 
 
     private void OnSmartBowConnectionLost()
     private void OnSmartBowConnectionLost()

+ 1 - 0
Assets/WildAttack/Scripts/UI/GameOverPanel.cs

@@ -120,6 +120,7 @@ namespace WildAttack
             text_highScoreTitle.text = StringModule.GetInstance().GetData("highScore") + ":";
             text_highScoreTitle.text = StringModule.GetInstance().GetData("highScore") + ":";
             text_highScore.text = recordScore.ToString();
             text_highScore.text = recordScore.ToString();
 
 
+            GameOverInterface.OnGameOver(GameMgr.gameType);
         }
         }
         #endregion
         #endregion
     }
     }