| | |
| | | - _UseUIAlphaClip: 0 |
| | | - _ZWrite: 1 |
| | | m_Colors: |
| | | - _Center: {r: 459, g: 280, b: 0, a: 0} |
| | | - _Center: {r: 455, g: -150, b: 0, a: 0} |
| | | - _Color: {r: 1, g: 1, b: 1, a: 1} |
| | | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_BuildTextureStacks: [] |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 5645412422946162502} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalPosition: {x: -0.12, y: 0, z: 0} |
| | | m_LocalScale: {x: 0.64, y: 0.64, z: 0.64} |
| | | m_Children: |
| | | - {fileID: 4457715277627928} |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 3408343651274775140} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalPosition: {x: -0.12, y: 0, z: 0} |
| | | m_LocalScale: {x: 0.64, y: 0.64, z: 0.64} |
| | | m_Children: |
| | | - {fileID: 930484069627965929} |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 4838457772518715291} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalPosition: {x: -0.12, y: 0, z: 0} |
| | | m_LocalScale: {x: 0.64, y: 0.64, z: 0.64} |
| | | m_Children: |
| | | - {fileID: 4726805076667173648} |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 5142262174865511149} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalPosition: {x: -0.12, y: 0, z: 0} |
| | | m_LocalScale: {x: 0.64, y: 0.64, z: 0.64} |
| | | m_Children: |
| | | - {fileID: 7208623104397428330} |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 6237817093940163391} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalPosition: {x: -0.12, y: 0, z: 0} |
| | | m_LocalScale: {x: 0.64, y: 0.64, z: 0.64} |
| | | m_Children: |
| | | - {fileID: 3053498307503446518} |
| | |
| | | /// </summary> |
| | | public static bool CreateRandomTower = true; |
| | | |
| | | /// <summary> |
| | | /// 是否是从新手开始闯关的 |
| | | /// </summary> |
| | | public static bool IsNewbieStart; |
| | | |
| | | #region 各个塔的偏移量 |
| | | public static Vector3 fireScale = new Vector3(1.92f, 1.92f, 2.208f); |
| | | public static Vector3 woodScale = new Vector3(1.5f, 1.5f, 2.82f); |
| | |
| | | /// <value></value> |
| | | private static int maxLevel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 新手总关卡数 |
| | | /// </summary> |
| | | /// <value></value> |
| | | public static int NewbieTotalLevel { get; private set; } |
| | | |
| | | public static int MaxLevel |
| | | { |
| | | get { return maxLevel; } |
| | |
| | | { |
| | | preLevel = data.level; |
| | | ++maxLevel; |
| | | |
| | | if (data.level < 0) |
| | | ++NewbieTotalLevel; |
| | | } |
| | | |
| | | EndlessPortConfig param = new EndlessPortConfig(); |
| | |
| | | RectTransform dragHandImg;//拖动标识手指 |
| | | |
| | | Button skillBtn;// |
| | | Vector2 skillBtnPos = new Vector2(459, 280); |
| | | Vector2 skillBtnPos = new Vector2(455, -150); |
| | | |
| | | private Image warningImg;//大波敌人来袭提示 |
| | | /// <summary> |
| | |
| | | |
| | | backgroundImg = transform.Find("Button").GetComponent<Image>(); |
| | | |
| | | skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBtn").GetComponent<Button>(); |
| | | skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillBtn").GetComponent<Button>(); |
| | | skillBtn.interactable = false; |
| | | towerBuyBtn = GameObject.Find("UICamera/BottomCanvas/Panel/TowerBuyBtn"); |
| | | RectTransform tmpTs = towerBuyBtn.GetComponent<RectTransform>(); |
| | |
| | | { |
| | | image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect; |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect; |
| | | } |
| | |
| | | { |
| | | image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect; |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect; |
| | | } |
| | |
| | | { |
| | | maskObj.InitForCamera(target, towerBuyBtnPos, x, y); |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | maskObj.InitForCamera(target, skillBtnPos, x, y); |
| | | } |
| | |
| | | { |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | GameConfig.IsNewbieStart = GameConfig.IsNewbie; |
| | | EndlessEnemyData.Init(); |
| | | EndlessBuffData.Init(); |
| | | EndlessBossData.Init(); |
| | |
| | | public void NewbieUpdateLevel() |
| | | { |
| | | ++CurrentLevel; |
| | | EndlessBuffData.InitEndlessBuffPool(CurrentLevel); |
| | | WaveManager.InitPort(CurrentLevel); |
| | | IsAllWaveCompleted = false; |
| | | EndlessUIStart.instance.Restart(); |
| | |
| | | { |
| | | if (EndlessGameUI.instance.state == EndlessGameUI.State.GameOver) return; |
| | | |
| | | EndlessBuffData.InitEndlessBuffPool(CurrentLevel); |
| | | |
| | | if (CurrentLevel == startLevel) |
| | | |
| | | WaveManager.InitPort(CurrentLevel); |
| | | |
| | | if (!GameConfig.IsNewbie) |
| | | { |
| | | // buff池的初始化要从正式关卡算起,不算新手关 |
| | | EndlessBuffData.InitEndlessBuffPool(GameConfig.IsNewbieStart ? CurrentLevel - EndlessPortData.NewbieTotalLevel : CurrentLevel); |
| | | ShowSelectBuffUI(); |
| | | } |
| | | else |
| | | { |
| | | EndlessUIStart.instance.Restart(); |
| | |
| | | |
| | | private void CheckIsNewbie() |
| | | { |
| | | //GameConfig.IsNewbie = false; |
| | | if (GameConfig.IsNewbie) |
| | | { |
| | | Debug.Log("开始新手引导"); |
| | |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3} |
| | | m_Name: supercell-magic SDF |
| | | m_Name: supercell-magic SDF 1 |
| | | m_EditorClassIdentifier: |
| | | hashCode: -853453286 |
| | | hashCode: -1697691509 |
| | | material: {fileID: -3548855653558765056} |
| | | materialHashCode: -1155586438 |
| | | materialHashCode: 1170809675 |
| | | m_Version: 1.1.0 |
| | | m_SourceFontFileGUID: 8294854c9f5a3d74386c04248156e896 |
| | | m_SourceFontFile_EditorRef: {fileID: 0} |