| | |
| | | mat.localPosition = Vector3.zero; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置火宝石攻速 |
| | | /// </summary> |
| | | /// <param name="isAttack"></param> |
| | | public void SetFireMatSpeed(bool isFast) |
| | | { |
| | | if (isFast) |
| | | { |
| | | mat.GetComponent<MeshRenderer>().material.SetFloat("_Speed", 40); |
| | | } |
| | | else |
| | | { |
| | | //还原10 |
| | | mat.GetComponent<MeshRenderer>().material.SetFloat("_Speed", 8); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 上阵塔缩放 |
| | | /// </summary> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 当前的TowerLevel设置为对应怪物的材质显示 |
| | | /// </summary> |
| | |
| | | |
| | | mat.GetComponent<MeshRenderer>().material = material; |
| | | |
| | | ResetScale(); |
| | | // if (transform.name.StartsWith("GrowUpTower") && mat.localPosition != fireOffectp) |
| | | // { |
| | | // mat.localPosition = fireOffectp; |