Example #1
0
 /// <summary>
 /// Ship MainType Tab
 /// </summary>
 /// <param name="shipTypeData"></param>
 public void SetUpTab(Config.AssembleShipMainType shipTypeData)
 {
     _btn.onClick.RemoveAllListeners();
     if (shipTypeData != null)
     {
         Type         = shipTypeData.Type;
         _icon.sprite = Utility.LoadSprite(shipTypeData.IconPath);
         _text.text   = MultiLanguage.Instance.GetTextValue(shipTypeData.TypeName);
         _btn.onClick.AddListener(OnShipBtnClick);
     }
 }
Example #2
0
 public Config.AssembleShipMainType GetAssembleShipPresetData(string type)
 {
     Config.AssembleShipMainType typeData = null;
     AssembleShipMainTypeDic.TryGetValue(type, out typeData);
     return(typeData);
 }