//构造所有的管理类,初始化所有的管理类
    private void InitManger()
    {
        uiManager     = new UIManager(this);
        audioManger   = new AudioManger(this);
        playManger    = new PlayManger(this);
        cameraManger  = new CameraManger(this);
        requestManger = new RequestManger(this);
        clientManger  = new ClientManger(this);

        mangerList.Add(uiManager);
        mangerList.Add(audioManger);
        mangerList.Add(playManger);
        mangerList.Add(cameraManger);
        mangerList.Add(requestManger);
        mangerList.Add(clientManger);

        mangerList.ForEach(m => m.OnInit());
    }
Esempio n. 2
0
 public RequestManagerTest()
 {
     _builder       = new Mock <IRequestBuilder>();
     _sent          = new Mock <IHttpServices>();
     _requestManger = new RequestManger(_builder.Object, _sent.Object);
 }