changed maps but lighting fked
This commit is contained in:
1 parent
6e9d834cfd
commit
7e0703975d
54 files changed
+75740
-8208
No files matched your search
@@ -21,9 +21,18 @@ public class TimingUI : MonoBehaviour {
|
||||
VisualElement notice;
|
||||
VisualElement noticeSectors;
|
||||
VisualElement noticeDiff;
|
||||
Label noticeMsg;
|
||||
Label noticeTime;
|
||||
Label noticePosition;
|
||||
|
||||
static string[] completionMsgs = {
|
||||
"smooth",
|
||||
"very fast",
|
||||
"well done",
|
||||
"ナイス",
|
||||
"(⌐▨_▨)",
|
||||
};
|
||||
|
||||
void OnEnable() {
|
||||
Init();
|
||||
}
|
||||
@@ -38,6 +47,7 @@ public class TimingUI : MonoBehaviour {
|
||||
timer = uiDocument.rootVisualElement.Q<VisualElement>("timer");
|
||||
timerSectors = uiDocument.rootVisualElement.Q<VisualElement>("timerSectors");
|
||||
|
||||
noticeMsg = uiDocument.rootVisualElement.Q<Label>("noticeMsg");
|
||||
noticeTime = uiDocument.rootVisualElement.Q<Label>("noticeTime");
|
||||
noticeDiff = uiDocument.rootVisualElement.Q<VisualElement>("noticeDiff");
|
||||
|
||||
@@ -68,8 +78,15 @@ public class TimingUI : MonoBehaviour {
|
||||
}
|
||||
|
||||
public void UpdateUI() {
|
||||
if (timerSectors == null)
|
||||
if (timerSectors == null) {
|
||||
Debug.LogWarning("null timerSectors");
|
||||
return;
|
||||
}
|
||||
|
||||
if (timing == null) {
|
||||
Debug.LogWarning("null timing");
|
||||
return;
|
||||
}
|
||||
|
||||
Lap timerPbLap = timing.Pb;
|
||||
if (timerPbLap != null)
|
||||
@@ -100,6 +117,9 @@ public class TimingUI : MonoBehaviour {
|
||||
noticeDiff.Clear();
|
||||
noticeDiff.Add(timing.CompareLap(lap).ToLabel());
|
||||
|
||||
int msgIndex = UnityEngine.Random.Range(0, completionMsgs.Length);
|
||||
noticeMsg.text = completionMsgs[msgIndex];
|
||||
|
||||
noticeSectors.Clear();
|
||||
foreach (SectorTime sector in lap.Sectors) {
|
||||
Label l = timing.CompareSector(sector).ToLabel();
|
||||
|
||||
Reference in new issue
Block a user