void Init() { //按顺序初始化模块 //服务模块 NetService net = GetComponent <NetService>(); net.InitNetService(); ResService res = GetComponent <ResService>(); res.InitRes(); AudioService audio = GetComponent <AudioService>(); audio.InitService(); //业务系统初始化 LoginSystem login = GetComponent <LoginSystem>(); login.Init(); //进入登录场景并加载相应UI login.EnterLogin(); }