xbox lighting issues
This commit is contained in:
1 parent
8f8b6bfb90
commit
64e2d97f00
18 files changed
+445
-97
No files matched your search
@@ -1,40 +1,40 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
// using UnityEngine;
|
||||
// using System.Collections;
|
||||
|
||||
public class DebugLogPanel : MonoBehaviour
|
||||
{
|
||||
uint qsize = 15; // number of messages to keep
|
||||
Queue myLogQueue = new Queue();
|
||||
// public class DebugLogPanel : MonoBehaviour
|
||||
// {
|
||||
// uint qsize = 15; // number of messages to keep
|
||||
// Queue myLogQueue = new Queue();
|
||||
|
||||
void Start() {
|
||||
Debug.Log("SpaceRace!");
|
||||
Debug.Log("WSAD - Strafe");
|
||||
Debug.Log("Mouse 1 - Thrust");
|
||||
Debug.Log("Mouse 2 - Decelerate");
|
||||
Debug.Log("Space - Respawn");
|
||||
Debug.Log("F10 - Exit");
|
||||
}
|
||||
// void Start() {
|
||||
// Debug.Log("SpaceRace!");
|
||||
// Debug.Log("WSAD - Strafe");
|
||||
// Debug.Log("Mouse 1 - Thrust");
|
||||
// Debug.Log("Mouse 2 - Decelerate");
|
||||
// Debug.Log("Space - Respawn");
|
||||
// Debug.Log("F10 - Exit");
|
||||
// }
|
||||
|
||||
void OnEnable() {
|
||||
Application.logMessageReceived += HandleLog;
|
||||
}
|
||||
// void OnEnable() {
|
||||
// Application.logMessageReceived += HandleLog;
|
||||
// }
|
||||
|
||||
void OnDisable() {
|
||||
Application.logMessageReceived -= HandleLog;
|
||||
}
|
||||
// void OnDisable() {
|
||||
// Application.logMessageReceived -= HandleLog;
|
||||
// }
|
||||
|
||||
void HandleLog(string logString, string stackTrace, LogType type) {
|
||||
// myLogQueue.Enqueue("[" + type + "] : " + logString);
|
||||
myLogQueue.Enqueue(logString);
|
||||
if (type == LogType.Exception)
|
||||
myLogQueue.Enqueue(stackTrace);
|
||||
while (myLogQueue.Count > qsize)
|
||||
myLogQueue.Dequeue();
|
||||
}
|
||||
// void HandleLog(string logString, string stackTrace, LogType type) {
|
||||
// // myLogQueue.Enqueue("[" + type + "] : " + logString);
|
||||
// myLogQueue.Enqueue(logString);
|
||||
// if (type == LogType.Exception)
|
||||
// myLogQueue.Enqueue(stackTrace);
|
||||
// while (myLogQueue.Count > qsize)
|
||||
// myLogQueue.Dequeue();
|
||||
// }
|
||||
|
||||
void OnGUI() {
|
||||
GUILayout.BeginArea(new Rect(0, 0, 400, Screen.height));
|
||||
GUILayout.Label("\n" + string.Join("\n", myLogQueue.ToArray()));
|
||||
GUILayout.EndArea();
|
||||
}
|
||||
}
|
||||
// void OnGUI() {
|
||||
// GUILayout.BeginArea(new Rect(0, 0, 400, Screen.height));
|
||||
// GUILayout.Label("\n" + string.Join("\n", myLogQueue.ToArray()));
|
||||
// GUILayout.EndArea();
|
||||
// }
|
||||
// }
|
||||
@@ -9,6 +9,11 @@
|
||||
height: 256px;
|
||||
}
|
||||
|
||||
#left {
|
||||
padding-left: 24px;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
Button {
|
||||
background-color: rgba(0, 0, 0, 0.26);
|
||||
color: rgb(255, 255, 255);
|
||||
|
||||
Reference in new issue
Block a user