Explorar o código

[unity] Slot GetColor GetColorTintBlack extensions

John %!s(int64=7) %!d(string=hai) anos
pai
achega
bc6a2ea129
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      spine-unity/Assets/spine-unity/SkeletonExtensions.cs

+ 2 - 0
spine-unity/Assets/spine-unity/SkeletonExtensions.cs

@@ -41,6 +41,8 @@ namespace Spine.Unity {
 		public static Color GetColor (this Skeleton s) { return new Color(s.r, s.g, s.b, s.a); }
 		public static Color GetColor (this Skeleton s) { return new Color(s.r, s.g, s.b, s.a); }
 		public static Color GetColor (this RegionAttachment a) { return new Color(a.r, a.g, a.b, a.a); }
 		public static Color GetColor (this RegionAttachment a) { return new Color(a.r, a.g, a.b, a.a); }
 		public static Color GetColor (this MeshAttachment a) { return new Color(a.r, a.g, a.b, a.a); }
 		public static Color GetColor (this MeshAttachment a) { return new Color(a.r, a.g, a.b, a.a); }
+		public static Color GetColor (this Slot s) { return new Color(s.r, s.g, s.b, s.a); }
+		public static Color GetColorTintBlack (this Slot s) { return new Color(s.r2, s.g2, s.b2, 1f); }
 
 
 		public static void SetColor (this Skeleton skeleton, Color color) {
 		public static void SetColor (this Skeleton skeleton, Color color) {
 			skeleton.A = color.a;
 			skeleton.A = color.a;