UIButtonCouponeInfo.cs 427 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. using System.Collections;
  3. public class UIButtonCouponeInfo : MonoBehaviour
  4. {
  5. public UILabel CouponeInfoName;
  6. public int CouponeIndex;
  7. // Use this for initialization
  8. public void Rename (string str)
  9. {
  10. CouponeInfoName.text = str;
  11. }
  12. void OnClick()
  13. {
  14. NGUIMenuScript.Instance.UiGetCoupone.CouponeInit(ServerGiftManager.Instance.Coupons[CouponeIndex]);
  15. }
  16. }