| | 1 | | using UnityEngine; |
| | 2 | |
|
| | 3 | | [CreateAssetMenu(fileName = "AvatarAnimationsVariable", menuName = "AvatarAnimationsVariable")] |
| | 4 | | public class AvatarAnimationsVariable : BaseVariableAsset<AvatarAnimation[]> |
| | 5 | | { |
| | 6 | | public override bool Equals(AvatarAnimation[] other) |
| | 7 | | { |
| 0 | 8 | | if (value.Length != other.Length) |
| 0 | 9 | | return false; |
| 0 | 10 | | for (var i = 0; i < value.Length; i++) |
| | 11 | | { |
| 0 | 12 | | if (value[i] != other[i]) |
| 0 | 13 | | return false; |
| | 14 | | } |
| | 15 | |
|
| 0 | 16 | | return true; |
| | 17 | | } |
| | 18 | | } |
| | 19 | |
|
| | 20 | | [System.Serializable] |
| | 21 | | public class AvatarAnimation |
| | 22 | | { |
| | 23 | | public AnimationClip clip; |
| | 24 | | public string id; |
| | 25 | | } |