public void Initialize() { NetTime.AutomaticTimeKeeping = false; NetClient = new FakeNetClient(); Controller = new FakeController(); Client = new Client(null, Controller, NetClient); Client.Init(null, Controller.CanvasSize); var connections = new List<INetConnection>(); var c = new FakeNetConnection(); c.AverageRoundtripTime = 0.2f; connections.Add(c); NetClient.Connections = connections; }
public void Cleanup() { Client = null; Controller = null; NetClient = null; }