using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; /* 动物关卡结算界面 */ public class HunterGameSettleView : MonoBehaviour { // Start is called before the first frame update void Start() { ChallengeGameMode gameMode = (ChallengeGameMode) GameMgr.ins.gameMode; string res = gameMode.Settle()[0].ToString(); if (res == "胜利") { #region if (GlobalData.pkMatchType == PKMatchType.None && !UserSettings.ins.trainMode) { LoginMgr.myUserInfo.SetChallengeLevelPass(GameMgr.gameType, gameMode.currentlevel); LoginMgr.myUserInfo.Save(); } #endregion this.transform.Find("Fail").gameObject.SetActive(false); AudioMgr.ins.PlayWin(); } else if (res == "失败") { this.transform.Find("Win").gameObject.SetActive(false); } this.transform.Find("Btns/Btn1").GetComponent