| | |
| | |
|
| | | void Assignment()
|
| | | {
|
| | | var functionForcecastConfig = ConfigManager.Instance.GetTemplate<FunctionForecastConfig>(OpenID);
|
| | | var functionForcecastConfig = Config.Instance.Get<FunctionForecastConfig>(OpenID);
|
| | | if (functionForcecastConfig == null)
|
| | | {
|
| | | Close();
|
| | | }
|
| | | var openLvConfig = ConfigManager.Instance.GetTemplate<FuncOpenLVConfig>(OpenID);
|
| | | var openLvConfig = Config.Instance.Get<FuncOpenLVConfig>(OpenID);
|
| | |
|
| | | FunctionImage.SetSprite(functionForcecastConfig.FuncIconKey);
|
| | | IconText.text = functionForcecastConfig.FuncName;
|
| | |
| | | if (openLvConfig.LimitMagicWeapon != 0)
|
| | | {
|
| | | int faBaoID = openLvConfig.LimitMagicWeapon / 100;
|
| | | TreasureConfig treasure = ConfigManager.Instance.GetTemplate<TreasureConfig>(faBaoID);
|
| | | TreasureConfig treasure = Config.Instance.Get<TreasureConfig>(faBaoID);
|
| | | ContentText1.text = string.Format(Language.Get("FuncFBOpen"), treasure.Name);
|
| | | return;
|
| | | }
|