| 1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace DTYJ
- {
- public class ShaDaiObj : MonoBehaviour
- {
- private void OnDestroy()
- {
- ShuiZaiCtrl.Instance.UpdateGround();
- }
- private void OnEnable()
- {
- var anim = GetComponent<Animation>();
- anim[anim.clip.name].normalizedTime = 0;
- anim.Play();
- }
- }
- }
|