Assets/Scripts/TowerDefense/Towers/TowerLevel.cs | ●●●●● patch | view | raw | blame | history |
Assets/Scripts/TowerDefense/Towers/TowerLevel.cs
@@ -233,6 +233,7 @@ attackSpeed = actionTimeArr[1] * fireRate; } SetAttackState(false); } } @@ -461,9 +462,16 @@ /// <param name="isAttackMode"></param> public void SetAttackState(bool isAttackMode) { Body.SetActive(!isAttackMode); AttackBody.SetActive(isAttackMode); ActionAnimator.enabled = isAttackMode; if (isAttackMode) { AttackBody.SetActive(isAttackMode); Body.SetActive(!isAttackMode); ChangeState(TowerActionState.Attack); } else { ChangeState(TowerActionState.Standing); } } /// <summary>