Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

console commit #6

wants to merge 1 commit into from

Conversation

bigshot0421
Copy link

No description provided.

@@ -79,10 +80,75 @@ void Awake()

void Start()
{
exmgr.CollectDefination(cfgmgr.config.ExDir);
exsmgr.CollectDefination(cfgmgr.config.ExSessionDir);
if (ui == null)
Copy link
Member

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;
}

Copy link
Member

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());



Copy link
Member

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)
Copy link
Member

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()

}

Copy link
Member

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.");
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants