private ModelMarketConfig GetModelCfg(string modelName) { ModelMarketConfig tmpCfg = null; MarketUIFrom.modelMarketConfigDic.TryGetValue(modelName, out tmpCfg); return(tmpCfg); }
}//Awake_end private void OnRecievePropsInfo(params object[] args) { ModelMarketConfig cfg = args[0] as ModelMarketConfig; if (cfg != null) { TxtName.text = TxtName ? cfg.meName : ""; dragScript.SetModelType(cfg.modelName); introText.text = introText ? cfg.intro : "TODO"; InitCtrlBtns(); } }
private ModelMarketConfig GetModelCfg(string btnName) { tmpCfg = null; modelMarketConfigDic.TryGetValue(btnName, out tmpCfg); return(tmpCfg); }