CouponeWin.cs 412 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class CouponeWin : MonoBehaviour {
  6. // Use this for initialization
  7. public RawImage Texture;
  8. void OnHide () {
  9. GetComponent<ScreenBase>().Hide();
  10. }
  11. public void Init(Texture texture)
  12. {
  13. if (texture != null)
  14. {
  15. Texture.texture = texture;
  16. }
  17. }
  18. }