chenxin
2020-11-19 1213446becf0fd501829ed8e6532b64cf904b2f6
Assets/Scripts/TowerDefense/UI/EndlessScoreManager.cs
@@ -191,9 +191,7 @@
            Image obj = Instantiate(OneTimeKillObj);
            obj.transform.SetParent(GameObject.Find("Panel").transform, false);
            obj.sprite = Resources.Load<Sprite>($"UI/DoubleHit/hit_{count}");
            Animator animator = obj.GetComponent<Animator>();
            AnimatorClipInfo[] animatorClipInfos = animator.GetCurrentAnimatorClipInfo(0);
            Destroy(obj.gameObject, animatorClipInfos[0].clip.length);
            Destroy(obj.gameObject, 0.59f);
        }
        private void OnShowOneTimeKillComplete()