Cute_demon_attacks/meng_yao/Assets/script/TanChuang/Lottery.cs

33 lines
681 B
C#
Raw Normal View History

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()
{
}
}