Simplify that

This commit is contained in:
2025-08-24 15:52:07 -07:00
parent ff7a5becb2
commit b979ded215
2 changed files with 4 additions and 4 deletions

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)
{

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; }
}