summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/XAnimationClip.cs
blob: 1ce55d7b6f58c2d2a231feb1b14696c10df46cd3 (plain)
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();
		}
	}
}