transform.GetComponent<TweenAlpha>().from = 0f; transform.GetComponent<TweenAlpha>().to = 1f; transform.GetComponent<TweenAlpha>().enabled = true; transform.GetComponent<TweenAlpha>().onFinished.Clear(); transform.GetComponent<TweenAlpha>().onFinished.Add(new EventDelegate(OnFinishCallBack)); transform.GetComponent<TweenAlpha>().ResetToBeginning(); // 动画完成调用 private void OnFinishCallBack(){ }
时间: 2024-10-24 20:22:23