示例#1
0
 public void InitNetwork()
 {
     NetworkSim         = NetworkSim.GetInsance().SetNetworkFrameGenerator(this);
     NetworkSim.Latency = new Random().Next(50, 55);;
     NetworkSim.Start();
 }
示例#2
0
 public static NetworkSim GetInsance()
 {
     return(_instance ?? (_instance = new NetworkSim()));
 }