|
@@ -174,13 +174,16 @@ public partial class ScreenLocate : MonoBehaviour
|
|
|
|
|
|
|
|
static public void AutoLightPixels(Color[] pixels, int width, int height)
|
|
static public void AutoLightPixels(Color[] pixels, int width, int height)
|
|
|
{
|
|
{
|
|
|
- var newTex = pixels.zimAutoLightSimple(width, height);
|
|
|
|
|
- DebugTexture(7, newTex);
|
|
|
|
|
- try
|
|
|
|
|
|
|
+ if (Main.DebugOnZIMDemo)
|
|
|
{
|
|
{
|
|
|
- Main.FullScreenImage.texture = newTex;
|
|
|
|
|
|
|
+ var newTex = pixels.zimAutoLightSimple(width, height);
|
|
|
|
|
+ DebugTexture(7, newTex);
|
|
|
|
|
+ try
|
|
|
|
|
+ {
|
|
|
|
|
+ Main.FullScreenImage.texture = newTex;
|
|
|
|
|
+ }
|
|
|
|
|
+ catch { }
|
|
|
}
|
|
}
|
|
|
- catch { }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static public void DebugTexture(int index, Texture texture)
|
|
static public void DebugTexture(int index, Texture texture)
|
|
@@ -289,14 +292,6 @@ public partial class ScreenLocate : MonoBehaviour
|
|
|
screenIdentification = new o0.Project.ScreenIdentification();
|
|
screenIdentification = new o0.Project.ScreenIdentification();
|
|
|
screenIdentification.LocateScreen();
|
|
screenIdentification.LocateScreen();
|
|
|
}
|
|
}
|
|
|
- if (DebugOnZIMDemo) {
|
|
|
|
|
-
|
|
|
|
|
- FullScreenToggle.onValueChanged.AddListener((i) =>
|
|
|
|
|
- {
|
|
|
|
|
- Screen.fullScreen = i;
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
infraredCount = InfraredCount.Single;
|
|
infraredCount = InfraredCount.Single;
|
|
|
|
|
|