Simplify that

This commit is contained in:
Lncvrt committed 2025-08-24 15:52:07 -07:00
1 parent ff7a5becb2
commit b979ded215
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -244,8 +244,8 @@ public class ChatroomMenu : MonoBehaviour
}
try
{
playerIcon.color = new Color((int)message.BirdColor[0] / 255f, (int)message.BirdColor[1] / 255f, (int)message.BirdColor[2] / 255f);
playerOverlayIcon.color = new Color((int)message.OverlayColor[0] / 255f, (int)message.OverlayColor[1] / 255f, (int)message.OverlayColor[2] / 255f);
playerIcon.color = new Color(message.BirdColor[0] / 255f, message.BirdColor[1] / 255f, message.BirdColor[2] / 255f);
playerOverlayIcon.color = new Color(message.OverlayColor[0] / 255f, message.OverlayColor[1] / 255f, message.OverlayColor[2] / 255f);
}
catch (Exception)
{
+2 -2
View File
@@ -31,9 +31,9 @@ public class ChatroomMessage {
[Preserve]
[JsonProperty("birdColor")]
public JArray BirdColor { get; set; }
public int[] BirdColor { get; set; }
[Preserve]
[JsonProperty("overlayColor")]
public JArray OverlayColor { get; set; }
public int[] OverlayColor { get; set; }
}