31 lines
828 B
C#
31 lines
828 B
C#
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);
|
|
}
|
|
}
|