void UIAnimation() { //回合开始动画 transform.localScale = new Vector3(2, 1, 1); transform.DOScale(Vector3.one, keepTime).OnComplete(() => { transform.DOScale(new Vector3(1, 1, 1), destroyTime).OnComplete(() => { transform.DOScale(new Vector3(1, 0, 1), 0.2f).OnComplete(() => { if (roundManager.roundPhase == RoundPhase.Preparatory) { roundManager.DrawRoundStart(); } else if (roundManager.roundPhase == RoundPhase.Ending) { roundManager.isMyturn = !roundManager.isMyturn; roundManager.PreparatoryRoundStart(); } Destroy(gameObject); }); }); }); }