Coupone.cs 704 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class Coupone : MonoBehaviour {
  5. void OnClick()
  6. {
  7. //if(PlayerPrefs.GetInt("Coupone") == 0)
  8. //{
  9. // NotificationCenter.Post(NotificationType.ShowGenericNotification, Localization.instance.Get("coupone.message"));
  10. // PlayerPrefs.SetInt("Coupone", 1);
  11. // Debug.Log(" PlayerPrefs.SetInt coupone");
  12. // PlayerPrefs.Save();
  13. // AnimateTowardsTarget();
  14. //}
  15. }
  16. void Update()
  17. {
  18. if (transform.localPosition.x>4000)
  19. {
  20. Destroy(gameObject);
  21. }
  22. }
  23. }