public void UpdateItemData(CrossCardAgent agent) { // 此时数据传递 _cardAgent = agent; }
protected CrossCardAgent _cardAgent; // 关联的 card agent; public void SetUpCardAgent(CrossCardAgent cardAgent) { _cardAgent = cardAgent; }
public void OnPlayVideo(CrossCardCellData cellData) { CrossCardAgent agent = _cardAgent as CrossCardAgent; agent.DoVideo(cellData.VideoUrl, cellData.Description, cellData.Image); }