コード例 #1
0
 public void TestEnd()
 {
     GameObject.DestroyImmediate(_coroutineManager);
     _rDataClient.Close();
     _rDataClient   = null;
     _jsonRpcClient = null;
     _testStopWatch.Stop();
     _testStopWatch = null;
 }
コード例 #2
0
        public void TestInit()
        {
            _testStopWatch    = new Stopwatch();
            _coroutineManager = new GameObject("Test_CoroutineManager", typeof(CoroutineManager)).GetComponent <CoroutineManager>();

            _jsonRpcClient                   = new MockJsonRpcClient();
            _localDataRepository             = new MockDataRepository();
            _rDataClient                     = new RDataClient();
            _rDataClient.JsonRpcClient       = _jsonRpcClient;
            _rDataClient.LocalDataRepository = _localDataRepository;
            _rDataClient.ChunkLifeTime       = 0.010f;

            _coroutineManager.TestCoroutine(_rDataClient.Open("hostname"));
            _testStopWatch.Start();
        }