void InitNetwork(CSEngineArgs args) { //NetManager = new NetManager(args.netEventListener) //{ // AutoRecycle = true //}; LiteNet = new LiteNet(args.netEventListener); }
public CSEngineApp(CSEngineArgs args) { //if (App != null) // { // throw new Exception("Only one instance of KBEngineApp!"); //} //App = this; Initialize(args); }
//public static CSEngineApp GetSingleton() //{ // if (CSEngineApp.App == null) // { // throw new Exception("Please create KBEngineApp!"); // } // return CSEngineApp.App; //} public virtual bool Initialize(CSEngineArgs args) { InitNetwork(args); InstallEvents(); return(true); }