| | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | if (GA_SDK_Manager.Ins == null) |
| | | gameObject.AddComponent<GA_SDK_Manager>(); |
| | | GA_SDK_Manager.Ins.ArriveBattle();//埋点 |
| | | GA_SDK_Manager.Ins.Statistics(4);//埋点 |
| | | |
| | |
| | | Instantiate(Resources.Load<GameObject>("UI/Guide/GuidePanel"), this.transform); |
| | | AddGuideEvent(); |
| | | } |
| | | |
| | | GameConfig.EndlessOpenAttackTowerCount = 0; |
| | | GameConfig.EndlessBuyTowerCount = 0; |
| | | GameConfig.EndlessPortUseSkillTowerCount = 0; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | private void SkillRelease() |
| | | { |
| | | EndlessLevelManager.instance.RestartWave(); |
| | | int attributeId = 99902; |
| | | int level = 1; |
| | | int waveLineIndex = 2; |
| | | int waveLineIndex = 1; |
| | | |
| | | // 播放特效,并处理伤害. |
| | | EndlessWaveLineManager.instance.PlayWaveLineEffect(waveLineIndex); |
| | | AgentInsManager.instance.ExecWavelineAttack(waveLineIndex, attributeId, level, false); |
| | | ++GameConfig.EndlessPortUseSkillTowerCount; |
| | | StartCoroutine(Delay1()); |
| | | } |
| | | |
| | |
| | | { |
| | | yield return new WaitForSeconds(1f); |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.SkillReleaseDone); |
| | | GameConfig.IsNewbie = false; |
| | | EndlessLevelManager.instance.PauseWave(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | private void NewbieGuideEnd() |
| | | { |
| | | EndlessLevelManager.instance.RestartWave(); |
| | | GameConfig.IsNewbie = false; |
| | | GameConfig.IsNewbieGuideCompleted = true; |
| | | } |
| | | |
| | | /// <summary> |