| | |
| | | protected override void Awake() |
| | | { |
| | | base.Awake(); |
| | | |
| | | if (Application.platform == RuntimePlatform.WindowsEditor || |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GMBtn.SetActive(true); |
| | | } |
| | | else |
| | | { |
| | | GMBtn.SetActive(false); |
| | | } |
| | | //这里为了方便直接使用Endless2D |
| | | GameObject root = GameObject.Find("ManagerRoot"); |
| | | |
| | | if (root == null) |
| | | { |
| | | if (Application.platform == RuntimePlatform.WindowsEditor || |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | } |
| | | |
| | | root = new GameObject("ManagerRoot"); |
| | | |
| | |
| | | |
| | | transform.Find("Panel/BuffPreviewButton").gameObject.SetActive(false); |
| | | transform.Find("Panel/SwitchSpeed").gameObject.SetActive(false); |
| | | GMBtn.SetActive(false); |
| | | |
| | | |
| | | GameConfig.EnergyCount = 0; |
| | | GameConfig.SkillLevel = 1; |
| | |
| | | fireSkillCost = JsonDataCenter.GetSkillLevelInfo(fireSkillID, GameConfig.SkillLevel).cost; |
| | | bombSkillCost = JsonDataCenter.GetSkillLevelInfo(bombSkillID, GameConfig.SkillLevel).cost; |
| | | //Debug.Log($"技能最高5级,当前技能等级:{GameConfig.SkillLevel} fireSkillCost:{fireSkillCost} "); |
| | | fireSkillLevelText.text = "Lv." + GameConfig.SkillLevel; |
| | | fireSkillLevelText.text = GameConfig.SkillLevel + "级"; |
| | | } |
| | | } |
| | | |