wangguan
2020-11-17 23e5d9bce9bbcdf943ba1c6b6e592101561d0aef
新手引导塔动作BUG
1 files modified
12 ■■■■ changed files
Assets/Scripts/TowerDefense/Towers/TowerLevel.cs 12 ●●●● 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);
            if (isAttackMode)
            {
            AttackBody.SetActive(isAttackMode);
            ActionAnimator.enabled = isAttackMode;
                Body.SetActive(!isAttackMode);
                ChangeState(TowerActionState.Attack);
            }
            else
            {
                ChangeState(TowerActionState.Standing);
            }
        }
        /// <summary>