using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CouponeWin : MonoBehaviour { // Use this for initialization public RawImage Texture; void OnHide () { GetComponent().Hide(); } public void Init(Texture texture) { if (texture != null) { Texture.texture = texture; } } }