public static void initTCP() { var config = new ServerConfig(); var coder = new Coder(); TCPInstance = new TCP(config, coder); instance.UpdateActions += TCPInstance.DoActions; TCPInstance.Connect(); }
void Awake() { instance = this; DontDestroyOnLoad(this); lh = new Framework.Log.LogHandler(); var config = new ServerConfig(); var coder = new Coder(); TCPInstance = new TCP(config, coder); UpdateActions += TCPInstance.DoActions; TCPInstance.Connect(); UIInstance = new UIManager(); var userDataInst = UserData.Instance; var roomInst = Lobby.Instance; var battleInst = BattleData.Instance; var dialogInst = Dialog.Instance; SceneManager.LoadScene(1); }