using UnityEngine; using System.Collections; public class TriggerEnterInput : MonoBehaviour { public void OnClick() { if (transform.parent.parent.name == "CouponPopup" || transform.parent.parent.name == "CouponPopupWrongNumber ") { Debug.Log(transform.parent.parent.name +"!!!!"); transform.parent.parent.localPosition = new Vector3(transform.parent.parent.localPosition.x, 88, transform.parent.parent.localPosition.z); } else { transform.parent.parent.parent.localPosition = new Vector3(transform.parent.parent.parent.localPosition.x, 88, transform.parent.parent.parent.localPosition.z); } } }