예제 #1
0
        public void Init()
        {
            //_commandStorage = new TestCommandStorage();
            _protocol     = TestProtocol.Instance;
            _serializator = new TestSerializator();
            _commands.Init(_data);
            //_context = ClientLogicCreator.Create(_serializator, _commandStorage);

            //_synhronize.onClick.AddListener(SendSync);
        }
예제 #2
0
        public void Init(ClientServerData data, TestSerializator serializator, ConfigData config)
        {
            _serializator = serializator;
            _server       = data.server;
            _serverType   = data.server.GetType();
            _clientState  = config.defaultClientState;
            _serverState  = config.defaultServerState;

            TestProtocol.Instance.SetServer(this);
        }
예제 #3
0
        public void Init(ClientServerData data, TestCommandStorage storage, TestSerializator serializator, ConfigData config)
        {
            _storage     = storage;
            _context     = data.client;
            _contextType = _context.GetType();
            _staticData  = config.staticData;

            _protocol     = TestProtocol.Instance;
            _serializator = serializator;
            _getProfile.onClick.AddListener(SendGetProfile);
            _synhronize.onClick.AddListener(SendSync);
            _clearClientChanges.onClick.AddListener(ClearClientChanges);
            SendGetProfile();
        }