From dab089212a25ba1d34654340d4d6989908a17628 Mon Sep 17 00:00:00 2001 From: AlexBourgeois Date: Thu, 20 Sep 2018 16:20:07 +0200 Subject: [PATCH] Renamed to Art-Net Light --- Assets/Scripts/ArtNetControllable.cs | 6 +++--- Assets/Scripts/ArtNetReceiver.cs | 12 ++++++------ Assets/Scripts/MaterialInterface.cs | 2 +- ProjectSettings/ProjectSettings.asset | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Assets/Scripts/ArtNetControllable.cs b/Assets/Scripts/ArtNetControllable.cs index 145999e..5b3b22e 100644 --- a/Assets/Scripts/ArtNetControllable.cs +++ b/Assets/Scripts/ArtNetControllable.cs @@ -19,11 +19,11 @@ public class ArtNetControllable : Controllable { [Header("Values")] [OSCProperty(isInteractible = false)] - public int ColorRed; + public int Red; [OSCProperty(isInteractible = false)] - public int ColorGreen; + public int Green; [OSCProperty(isInteractible = false)] - public int ColorBlue; + public int Blue; } diff --git a/Assets/Scripts/ArtNetReceiver.cs b/Assets/Scripts/ArtNetReceiver.cs index a5abc2a..3a03520 100644 --- a/Assets/Scripts/ArtNetReceiver.cs +++ b/Assets/Scripts/ArtNetReceiver.cs @@ -26,9 +26,9 @@ public int ListeningPort public int StartChannel; - public int ColorRed; - public int ColorGreen; - public int ColorBlue; + public int Red; + public int Green; + public int Blue; public bool Running; @@ -82,9 +82,9 @@ private void ThreadMethod() if (BreakThread) break; - ColorRed = receiveBytes[17 + StartChannel]; - ColorGreen = receiveBytes[18 + StartChannel]; - ColorBlue = receiveBytes[19 + StartChannel]; + Red = receiveBytes[17 + StartChannel]; + Green = receiveBytes[18 + StartChannel]; + Blue = receiveBytes[19 + StartChannel]; } } Running = false; diff --git a/Assets/Scripts/MaterialInterface.cs b/Assets/Scripts/MaterialInterface.cs index 6083661..c3e5ac6 100644 --- a/Assets/Scripts/MaterialInterface.cs +++ b/Assets/Scripts/MaterialInterface.cs @@ -9,6 +9,6 @@ public class MaterialInterface : MonoBehaviour { // Update is called once per frame void Update () { - QuadMaterial.color = new Color((Receiver.ColorRed / 255.0f), (Receiver.ColorGreen / 255.0f), (Receiver.ColorBlue / 255.0f)); + QuadMaterial.color = new Color((Receiver.Red / 255.0f), (Receiver.Green / 255.0f), (Receiver.Blue / 255.0f)); } } diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 94e7772..f2daedf 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -13,7 +13,7 @@ PlayerSettings: useOnDemandResources: 0 accelerometerFrequency: 60 companyName: Theoriz - productName: DMX Light + productName: Art-Net Light defaultCursor: {fileID: 0} cursorHotspot: {x: 0, y: 0} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}