| | |
| | | using System.Collections.Generic; |
| | | using ActionGameFramework.Health; |
| | | using Core.Health; |
| | | using KTGMGemClient; |
| | | using TowerDefense.Affectors; |
| | | using TowerDefense.Towers.Data; |
| | | using TowerDefense.UI.HUD; |
| | |
| | | |
| | | Vector3 normalScale; |
| | | |
| | | private Vector3 fireScale = new Vector3(1.92f, 1.92f, 2.208f); |
| | | private Vector3 woodScale = new Vector3(1.5f, 1.5f, 2.82f); |
| | | private Vector3 waterScale = new Vector3(1.0f, 1.0f, 1.88f); |
| | | |
| | | private Vector3 fireOffectp = new Vector3(0f, 0f, -0.15f); |
| | | |
| | | private Vector3 woodOffectp = new Vector3(0.08f, 0f, 0.2f); |
| | | |
| | | private void Awake() |
| | | { |
| | | mat = transform.Find("Cube"); |
| | |
| | | if (transform.name.StartsWith("GrowUpTower")) |
| | | { |
| | | //火元素 |
| | | mat.localScale = fireScale; |
| | | mat.localPosition = fireOffectp; |
| | | mat.localScale = GameConfig.fireScale; |
| | | mat.localPosition = GameConfig.fireOffectp; |
| | | } |
| | | else if (transform.name.StartsWith("BlinkTower")) |
| | | { |
| | | //木元素 |
| | | mat.localScale = woodScale; |
| | | mat.localPosition = woodOffectp; |
| | | mat.localScale = GameConfig.woodScale; |
| | | mat.localPosition = GameConfig.woodOffectp; |
| | | |
| | | } |
| | | else if (transform.name.StartsWith("CopyCatTower")) |