Пример #1
0
    /// <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();
    }
Пример #2
0
 public void IniAudioSer()
 {
     Instance = this;
 }
Пример #3
0
 protected virtual void ClearPanle()
 {
     resSever = null;
     audioSer = null;
     netSvc   = null;
 }
Пример #4
0
 public virtual void IniSys()
 {
     resSever = ResSever.Instance;
     audioSer = AudioSer.Instance;
     netSvc   = NetSvc.Instance;
 }
Пример #5
0
 protected virtual void IniPanle()
 {
     resSever = ResSever.Instance;
     audioSer = AudioSer.Instance;
     netSvc   = NetSvc.Instance;
 }