From bc6a2ea129fa4e32bf2fced4d4283e75c8db055e Mon Sep 17 00:00:00 2001 From: John Date: Wed, 20 Dec 2017 07:15:34 +0800 Subject: [PATCH] [unity] Slot GetColor GetColorTintBlack extensions --- spine-unity/Assets/spine-unity/SkeletonExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spine-unity/Assets/spine-unity/SkeletonExtensions.cs b/spine-unity/Assets/spine-unity/SkeletonExtensions.cs index e81435733..a3d97551a 100644 --- a/spine-unity/Assets/spine-unity/SkeletonExtensions.cs +++ b/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 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 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) { skeleton.A = color.a;