Files
RedHotRoast-ios/Assets/Scripts/new_view/gemCrush.cs
T

21 lines
459 B
C#
Raw Normal View History

2026-04-22 09:52:55 +08:00
using System.Collections;
using System.Collections.Generic;
using FlowerPower;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class gemCrush : MonoBehaviour
{
public GameObject bg;
public void setGemBackground(string alp)
{
int a = int.Parse(alp);
Color cl = bg.GetComponent<Image>().color;
cl.a = a;
//bg为游戏背景图片
bg.GetComponent<Image>().color = cl;
}
}