| | |
| | | /// 所有新手的引导步骤是否全部完成 |
| | | /// </summary> |
| | | public static bool IsNewbieGuideCompleted = false; |
| | | |
| | | /// <summary> |
| | | /// 无尽模式每一轮游戏中成功使用技能宝石的次数 |
| | | /// </summary> |
| | | public static int EndlessPortUseSkillTowerCount; |
| | | |
| | | /// <summary> |
| | | /// 每一轮游戏中成功开启的塔位置数量,这个是上阵的塔,可以攻击的塔位 |
| | | /// </summary> |
| | | public static int EndlessOpenAttackTowerCount; |
| | | |
| | | /// <summary> |
| | | /// 每一轮游戏中成功购买塔的数量 |
| | | /// </summary> |
| | | public static int EndlessBuyTowerCount; |
| | | } |
| | | } |
| | |
| | | // 火元素塔充能使用结束 |
| | | FireTowerChargeEnd, |
| | | //新手引导结束 |
| | | GuideFinish |
| | | GuideFinish, |
| | | // 无尽模式成功通过第*关,第*波 |
| | | EndlessCompletedPort, |
| | | // 无尽模式关卡结束 |
| | | EndlessLevelCompleted, |
| | | } |
| | | |
| | | } |
| | |
| | | // 更新波索引 |
| | | ++CurrentWaveIndex; |
| | | EndlessBuffManager.instance.UpdateBuffList(); |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessCompletedPort, Level, CurrentWaveIndex); |
| | | |
| | | if (CurrentWaveIndex >= TotalWaves) |
| | | // 当前关卡的所有波次全部完成 |
| | |
| | | } |
| | | // 设置塔位默认开启,后面需要根据配置来 |
| | | m_arrGridType[2, 3] = PlacementGridType.EGridOpen; |
| | | ++GameConfig.EndlessOpenAttackTowerCount; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | protected void Victory() |
| | | { |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessLevelCompleted); |
| | | EndlessUIStart.instance.Pause(); |
| | | OpenEndGameScreen(true); |
| | | if (VictoryAudio != null && AudioSource != null) |
| | |
| | | |
| | | if (bsucc) |
| | | { |
| | | ++GameConfig.EndlessOpenAttackTowerCount; |
| | | towerGrid.updateGridOpenCoin(gridX, gridY); |
| | | if (mImage) |
| | | mImage.color = new Color(1.0f, 1.0f, 1.0f, 0.0f); |
| | |
| | | Instantiate(Resources.Load<GameObject>("UI/Guide/GuidePanel"), this.transform); |
| | | AddGuideEvent(); |
| | | } |
| | | |
| | | GameConfig.EndlessOpenAttackTowerCount = 0; |
| | | GameConfig.EndlessBuyTowerCount = 0; |
| | | GameConfig.EndlessPortUseSkillTowerCount = 0; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | // 播放特效,并处理伤害. |
| | | EndlessWaveLineManager.instance.PlayWaveLineEffect(waveLineIndex); |
| | | AgentInsManager.instance.ExecWavelineAttack(waveLineIndex, attributeId, level, false); |
| | | ++GameConfig.EndlessPortUseSkillTowerCount; |
| | | StartCoroutine(Delay1()); |
| | | } |
| | | |
| | |
| | | // 播放特效,并处理伤害. |
| | | EndlessWaveLineManager.instance.PlayWaveLineEffect(selEff.waveLineId); |
| | | AgentInsManager.instance.ExecWavelineAttack(selEff.waveLineId, sId, sLevel, false); |
| | | ++GameConfig.EndlessPortUseSkillTowerCount; |
| | | return true; |
| | | } |
| | | } |
| | |
| | | m_CurrentTower.Show(); |
| | | if (successfulPurchase) |
| | | { |
| | | ++GameConfig.EndlessBuyTowerCount; |
| | | // 删除towerToMove,确保塔防数据不再出现多个 |
| | | if (zeroCost && (towerToMove != null)) |
| | | { |