1234567891011121314151617181920212223242526272829303132 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Coupone : MonoBehaviour {
- void OnClick()
- {
- //if(PlayerPrefs.GetInt("Coupone") == 0)
- //{
- // NotificationCenter.Post(NotificationType.ShowGenericNotification, Localization.instance.Get("coupone.message"));
- // PlayerPrefs.SetInt("Coupone", 1);
- // Debug.Log(" PlayerPrefs.SetInt coupone");
- // PlayerPrefs.Save();
- // AnimateTowardsTarget();
- //}
-
- }
-
-
- void Update()
- {
-
- if (transform.localPosition.x>4000)
- {
-
- Destroy(gameObject);
- }
-
- }
- }
|