/// <summary> /// 初始化游戏 /// </summary> private void Init() { ///服务模块 初始化; ResSever resSever = GetComponent <ResSever>(); resSever.IniResSever(); NetSvc net = GetComponent <NetSvc>(); net.InitSvc(); AudioSer audioSer = GetComponent <AudioSer>(); audioSer.IniAudioSer(); ///业务系统 初始化; LoginSystem loginSystem = GetComponent <LoginSystem>(); loginSystem.IniSys(); ///载入登陆场景: loginSystem.EnterLogin(); }
public void IniAudioSer() { Instance = this; }
protected virtual void ClearPanle() { resSever = null; audioSer = null; netSvc = null; }
public virtual void IniSys() { resSever = ResSever.Instance; audioSer = AudioSer.Instance; netSvc = NetSvc.Instance; }
protected virtual void IniPanle() { resSever = ResSever.Instance; audioSer = AudioSer.Instance; netSvc = NetSvc.Instance; }