FloatPrefabEvent.cs 296 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class FloatPrefabEvent : MonoBehaviour
  5. {
  6. /// <summary>
  7. /// 动画完成后
  8. /// </summary>
  9. void OnAnimationComplete()
  10. {
  11. GameObject.Destroy(this.gameObject);
  12. }
  13. }