2024-11-14 16:05:27 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
public class Lottery : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public GameObject LotteryPanel;
|
|
|
|
|
public Button LotteryBtn;
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-11-14 16:15:28 +08:00
|
|
|
|
LotteryBtn.onClick.AddListener(LotteryClick);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LotteryClick()
|
2024-11-14 17:23:08 +08:00
|
|
|
|
{
|
|
|
|
|
if ((WaterPanel.instance.waterCount-999) > 0)
|
|
|
|
|
{
|
|
|
|
|
WaterPanel.instance.setWater(-999);
|
|
|
|
|
LotteryPanel.gameObject.SetActive(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Promptmgr.Instance.PromptBubble("ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><EFBFBD><DEB7>齱");
|
|
|
|
|
}
|
2024-11-14 16:05:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|