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