-
Notifications
You must be signed in to change notification settings - Fork 4
console commit #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -79,10 +80,75 @@ void Awake() | |||
|
|||
void Start() | |||
{ | |||
exmgr.CollectDefination(cfgmgr.config.ExDir); | |||
exsmgr.CollectDefination(cfgmgr.config.ExSessionDir); | |||
if (ui == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to check these references, when we drag connect them in editor, it can't be null.
UnityEngine.Debug.LogError("找不到 ConfigManager 组件!"); | ||
return; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these panel init should be done in ui.cs not here in app manager
ui.UpdateExperimentList(exmgr.deffile.Keys.ToList(), cfgmgr.config.FirstTestID); | ||
ui.UpdateExperimentSessionList(exsmgr.deffile.Keys.ToList()); | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, ui related staff should be in ui.cs, not in app manager
@@ -201,6 +267,10 @@ public void OnScreenSizeChanged() | |||
if (exmgr.el.envmgr.MainCamera.Count == 0) { return; } | |||
var lmc = exmgr.el.envmgr.MainCamera.Where(i => i.ClientID == NetworkManager.ServerClientId).First(); | |||
lmc?.ReportRpc("ScreenAspect", Base.ScreenAspect); | |||
if (ui != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when quit, no need to update view
@@ -675,5 +752,12 @@ public void LoadCurrentScene() | |||
|
|||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wantstoquit is to quit the application, on destroy() called when delete app manager object, not the same. shouldn't add this.
@@ -75,7 +75,8 @@ public static Dictionary<string, List<object>> ReadConditionFile(string path) | |||
{ | |||
if (!File.Exists(path)) | |||
{ | |||
Debug.LogError($"Condition File: {path} Not Found."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need two logs?
No description provided.