1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using System; using UnityEngine; namespace XUtliPoolLib { public class XAnimationClip : ScriptableObject { public AnimationClip clip; public float length; public void Reset() { this.clip = null; this.length = 0f; } public int GetInstanceID() { return (this.clip == null) ? 0 : this.clip.GetInstanceID(); } } }