Beispiel #1
0
        public static void initTCP()
        {
            var config = new ServerConfig();
            var coder  = new Coder();

            TCPInstance             = new TCP(config, coder);
            instance.UpdateActions += TCPInstance.DoActions;
            TCPInstance.Connect();
        }
Beispiel #2
0
        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);
        }