22 lines
642 B
C#
22 lines
642 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class CoinScript : BJBase
|
|
{
|
|
public override void SetCoinCount()
|
|
{
|
|
tMP_CoinCount.text = NumAdd(coinCount.ToString());
|
|
|
|
// 自己爆奖显示金,别人显示银
|
|
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);
|
|
}
|
|
}
|