MessengerCoupone.cs 504 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. using System.Collections;
  3. public class MessengerCoupone : MonoBehaviour
  4. {
  5. public UILabel unsuccessful;
  6. public UILabel successful;
  7. void Start () {
  8. }
  9. // Update is called once per frame
  10. public void OnSucceful () {
  11. unsuccessful.gameObject.SetActive(false);
  12. successful.gameObject.SetActive(true);
  13. }
  14. public void OnUnsucceful()
  15. {
  16. unsuccessful.gameObject.SetActive(true);
  17. successful.gameObject.SetActive(false);
  18. }
  19. }