CouponeWin.cs 395 B

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