fix:1、添加项目
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user