mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-25 03:01:26 +08:00
[csharp] Make AnimationPair nested type public.
This commit is contained in:
parent
5766aa747d
commit
1e7b9a1083
@ -83,7 +83,7 @@ namespace Spine {
|
|||||||
return defaultMix;
|
return defaultMix;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AnimationPair {
|
public struct AnimationPair {
|
||||||
public readonly Animation a1;
|
public readonly Animation a1;
|
||||||
public readonly Animation a2;
|
public readonly Animation a2;
|
||||||
|
|
||||||
@ -98,8 +98,8 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Avoids boxing in the dictionary.
|
// Avoids boxing in the dictionary.
|
||||||
class AnimationPairComparer : IEqualityComparer<AnimationPair> {
|
public class AnimationPairComparer : IEqualityComparer<AnimationPair> {
|
||||||
internal static readonly AnimationPairComparer Instance = new AnimationPairComparer();
|
public static readonly AnimationPairComparer Instance = new AnimationPairComparer();
|
||||||
|
|
||||||
bool IEqualityComparer<AnimationPair>.Equals (AnimationPair x, AnimationPair y) {
|
bool IEqualityComparer<AnimationPair>.Equals (AnimationPair x, AnimationPair y) {
|
||||||
return ReferenceEquals(x.a1, y.a1) && ReferenceEquals(x.a2, y.a2);
|
return ReferenceEquals(x.a1, y.a1) && ReferenceEquals(x.a2, y.a2);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user