Files
5.24BuYu/Assets/MyGame/aa/Game/DefaultDieEffect/Coin/CoinScript.cs
T

22 lines
642 B
C#
Raw Normal View History

2026-04-25 18:53:04 +08:00
using System;
2026-04-24 22:51:34 +08:00
using System.Collections;
using System.Collections.Generic;
2026-04-25 18:53:04 +08:00
using TMPro;
2026-04-24 22:51:34 +08:00
using UnityEngine;
2026-05-18 18:39:11 +08:00
public class CoinScript : BJBase
2026-04-24 22:51:34 +08:00
{
2026-05-22 19:30:02 +08:00
public override void SetCoinCount()
2026-04-25 18:53:04 +08:00
{
2026-05-22 19:30:02 +08:00
tMP_CoinCount.text = NumAdd(coinCount.ToString());
2026-07-19 14:27:00 +08:00
// 自己爆奖显示金,别人显示银
bool isMine = !string.IsNullOrEmpty(userID)
&& GameManager.Instance != null
&& GameManager.Instance.user != null
&& userID == GameManager.Instance.user.id;
if (gold != null) gold.SetActive(isMine);
if (silver != null) silver.SetActive(!isMine);
2026-04-25 18:53:04 +08:00
}
2026-04-24 22:51:34 +08:00
}