| Fight/Stage/Dungeon/GuardDungeonStage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/DungeonGuardVictoryWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/DungeonGuardVictoryWin.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/DungeonModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Fight/Stage/Dungeon/GuardDungeonStage.cs
@@ -109,6 +109,16 @@ List<Item> items = null; int autoDialogueSecond = 10; DateTime startTime = DateTime.Now; public int totalUsedSeconds { get { return (int)(DateTime.Now - startTime).TotalSeconds; } } bool initialized = false; DungeonModel model { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } } @@ -374,6 +384,8 @@ { var seconds = stepTimes[1]; startTime = DateTime.Now; model.UpdateCoolDown(DungeonCoolDownType.FightStart, (uint)seconds * 1000); dungeonEndClock = Clock.AlarmAfter(seconds, OnDungeonEnd); System/Dungeon/DungeonGuardVictoryWin.cs
New file @@ -0,0 +1,35 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Monday, May 27, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class DungeonGuardVictoryWin : DungeonVictoryWin { protected override void Display() { var result = dungeonModel.dungeonResult; if (StageLoad.Instance.currentStage is GuardDungeonStage) { result.costTime = (StageLoad.Instance.currentStage as GuardDungeonStage).totalUsedSeconds * 1000; dungeonModel.dungeonResult = result; } base.Display(); } } } System/Dungeon/DungeonGuardVictoryWin.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 7a1a75f14859cb34a9d5fd24e8ed8684 timeCreated: 1558939609 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/Dungeon/DungeonModel.cs
@@ -1133,6 +1133,9 @@ case HazyDemonKingModel.CLIENTDATAMAP: WindowCenter.Instance.Open<HazyDemonKingVictoryWin>(); break; case ClientGuardDungeon.DATAMAPID: WindowCenter.Instance.Open<DungeonGuardVictoryWin>(); break; default: WindowCenter.Instance.Open<DungeonVictoryWin>(); break;