public void Init() { //_commandStorage = new TestCommandStorage(); _protocol = TestProtocol.Instance; _serializator = new TestSerializator(); _commands.Init(_data); //_context = ClientLogicCreator.Create(_serializator, _commandStorage); //_synhronize.onClick.AddListener(SendSync); }
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(); }