备份CatanBuilding瘦身独立工程
This commit is contained in:
30
Assets/Scripts/UI/FishingTarget/target_reward_big.cs
Normal file
30
Assets/Scripts/UI/FishingTarget/target_reward_big.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using GameCore;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class target_reward_big : MonoBehaviour
|
||||
{
|
||||
public Rewardx1x2 rewardx1X2;
|
||||
public GameObject big_reward;
|
||||
public GameObject grand_reward;
|
||||
public EventTargetGrandPrizeTips grandPrizeTips;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
rewardx1X2.reward.btn_click.onClick.AddListener(ShowGrandPrizeTips);
|
||||
rewardx1X2.reward1.btn_click.onClick.AddListener(ShowGrandPrizeTips);
|
||||
rewardx1X2.reward2.btn_click.onClick.AddListener(ShowGrandPrizeTips);
|
||||
}
|
||||
|
||||
void ShowGrandPrizeTips()
|
||||
{
|
||||
grandPrizeTips.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void SetData(List<ItemData> itemDatas, bool big)
|
||||
{
|
||||
big_reward.SetActive(big);
|
||||
grand_reward.SetActive(!big);
|
||||
rewardx1X2.SetData(itemDatas);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user