예제 #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, 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();
        }