先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
54 lines
2.0 KiB
C#
54 lines
2.0 KiB
C#
using asap.core;
|
|
using cfg;
|
|
|
|
public class FishingTargetPopupPanel : FishingTargetPopupPanelBase
|
|
{
|
|
public TargetInfoBase curTargetInfoBase;
|
|
public TargetInfoBase targetInfoBase1;
|
|
public TargetInfoBase targetInfoBase2;
|
|
public TargetInfoBase targetInfoBase3;
|
|
protected override void Awake()
|
|
{
|
|
targetInfoBase1 = transform.Find("root/target_info1").GetComponent<TargetInfoBase>();
|
|
targetInfoBase2 = transform.Find("root/target_info2").GetComponent<TargetInfoBase>();
|
|
targetInfoBase3 = transform.Find("root/target_info3").GetComponent<TargetInfoBase>();
|
|
base.Awake();
|
|
}
|
|
|
|
protected override void SetTargetExtra(string icon)
|
|
{
|
|
EventTargetExtraDrop eventTargetExtraDrop = _fishingEventData.GetEventTargetExtraDrop();
|
|
targetInfoBase1.gameObject.SetActive(false);
|
|
targetInfoBase2.gameObject.SetActive(false);
|
|
targetInfoBase3.gameObject.SetActive(false);
|
|
if (eventTargetExtraDrop != null)
|
|
{
|
|
if (eventTargetExtraDrop is ETDropAfterDrop)
|
|
{
|
|
targetInfoBase2.SetData(eventTargetExtraDrop as ETDropAfterDrop);
|
|
curTargetInfoBase = targetInfoBase2;
|
|
}
|
|
else if (eventTargetExtraDrop is ETNewItem)
|
|
{
|
|
targetInfoBase3.SetData(eventTargetExtraDrop as ETNewItem);
|
|
curTargetInfoBase = targetInfoBase3;
|
|
|
|
}
|
|
else if (eventTargetExtraDrop is ETDropByFish)
|
|
{
|
|
targetInfoBase1.SetData(eventTargetExtraDrop as ETDropByFish);
|
|
curTargetInfoBase = targetInfoBase1;
|
|
}
|
|
}
|
|
IUIService uIService = GContext.container.Resolve<IUIService>();
|
|
for (int i = 0; i < curTargetInfoBase.icon_target.Count; i++)
|
|
{
|
|
uIService.SetImageSprite(curTargetInfoBase.icon_target[i], icon, BasePanel.PanelName);
|
|
}
|
|
}
|
|
|
|
//protected void OnDestroy()
|
|
//{
|
|
// UIManager.Instance.DestroyUI(UITypes.FishCardReviewPopupPanel);
|
|
//}
|
|
} |