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