= 4 лет назад
Родитель
Сommit
256b52b2e8
2 измененных файлов с 7 добавлено и 4 удалено
  1. 4 4
      Assets/Resources/Dice/Dice.prefab
  2. 3 0
      Assets/Resources/Dice/DiceUI.cs

+ 4 - 4
Assets/Resources/Dice/Dice.prefab

@@ -79,7 +79,7 @@ SpriteRenderer:
   m_SortingLayer: 2
   m_SortingOrder: 1000
   m_Sprite: {fileID: 21300000, guid: 99c4f3f06e1d0524b8adb53534e796b1, type: 3}
-  m_Color: {r: 0.43529415, g: 0.3647059, b: 0.3137255, a: 1}
+  m_Color: {r: 0.62352943, g: 0.68235296, b: 0.7294118, a: 1}
   m_FlipX: 0
   m_FlipY: 0
   m_DrawMode: 0
@@ -127,7 +127,7 @@ BoxCollider2D:
   m_SpriteTilingProperty:
     border: {x: 0, y: 0, z: 0, w: 0}
     pivot: {x: 0.5, y: 0.5}
-    oldSize: {x: 1.125, y: 1.125}
+    oldSize: {x: 1, y: 1}
     newSize: {x: 1, y: 1}
     adaptiveTilingThreshold: 0.5
     drawMode: 0
@@ -224,7 +224,7 @@ SpriteRenderer:
   m_SortingLayer: 2
   m_SortingOrder: 1001
   m_Sprite: {fileID: 0}
-  m_Color: {r: 0.854902, g: 0.8235295, b: 0.72156864, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_FlipX: 0
   m_FlipY: 0
   m_DrawMode: 0
@@ -308,7 +308,7 @@ SpriteRenderer:
   m_SortingLayer: 2
   m_SortingOrder: 1001
   m_Sprite: {fileID: 21300000, guid: 34465e68ae881a140b4f4146cfab7c56, type: 3}
-  m_Color: {r: 0.854902, g: 0.8235295, b: 0.72156864, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_FlipX: 0
   m_FlipY: 0
   m_DrawMode: 0

+ 3 - 0
Assets/Resources/Dice/DiceUI.cs

@@ -30,6 +30,9 @@ public class DiceUI : MonoBehaviour {
         spriteBg.DOColor(isKeyDown ?
             new Color(168f / 255f, 255f / 255f, 177f / 255f, isDropped ? 0.3f : 1f) :
             new Color(159f / 255f, 174f / 255f, 186f / 255f, isDropped ? 0.3f : 1f), 0.05f);
+        spriteLetter.DOColor(isKeyDown ?
+            new Color(168f / 255f, 255f / 255f, 177f / 255f, isDropped ? 0.3f : 1f) :
+            new Color(1f, 1f, 1f, isDropped ? 0.3f : 1f), 0.05f);
     }
 
     public bool allowPress = true;