Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     EventTriggerListener.Get(Btn.gameObject).onClick    = onClick;
     EventTriggerListener.Get(BuyBtn.gameObject).onClick = onClick;
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     EventTriggerListener.Get(UseBtn.gameObject).onClick   = onClick;
     EventTriggerListener.Get(UnuseBtn.gameObject).onClick = onClick;
     EventTriggerListener.Get(ViewBtn.gameObject).onClick  = onClick;
 }
Beispiel #3
0
 void Start()
 {
     EventTriggerListener.Get(SureBtn.gameObject).onClick   = onClick;
     EventTriggerListener.Get(CancelBtn.gameObject).onClick = onClick;
 }
Beispiel #4
0
        protected override void Init()
        {
            icons = new List <Image>()
            {
                GetChildImage("icon0"),
                GetChildImage("icon1"),
                GetChildImage("icon2"),
                GetChildImage("icon3")
            };
            iconBtns = new List <Button>()
            {
                GetChildButton("icon0"),
                GetChildButton("icon1"),
                GetChildButton("icon2"),
                GetChildButton("icon3")
            };
            cdMasks = new List <Image>()
            {
                GetChildImage("cdMask0"),
                GetChildImage("cdMask1"),
                GetChildImage("cdMask2"),
                GetChildImage("cdMask3")
            };
            disableSeatMasks = new List <Image>()
            {
                GetChildImage("disableSeatMask0"),
                GetChildImage("disableSeatMask1"),
                GetChildImage("disableSeatMask2"),
                GetChildImage("disableSeatMask3")
            };
            disableBookMasks = new List <Image>()
            {
                GetChildImage("disableBookMask0"),
                GetChildImage("disableBookMask1"),
                GetChildImage("disableBookMask2")
            };
            injuryImages = new List <Image>()
            {
                GetChildImage("injuryImage0"),
                GetChildImage("injuryImage1"),
                GetChildImage("injuryImage2"),
                GetChildImage("injuryImage3")
            };
            for (int i = 0; i < iconBtns.Count; i++)
            {
                EventTriggerListener.Get(iconBtns[i].gameObject).onClick += onClick;
            }
            btnsObj   = GetChild("btns");
            bagButton = GetChildButton("bagButton");
            EventTriggerListener.Get(bagButton.gameObject).onClick += onClick;
            booksButton = GetChildButton("booksButton");
            EventTriggerListener.Get(booksButton.gameObject).onClick += onClick;
            expButton = GetChildButton("expButton");
            EventTriggerListener.Get(expButton.gameObject).onClick += onClick;
            weaponsButton = GetChildButton("weaponsButton");
            EventTriggerListener.Get(weaponsButton.gameObject).onClick += onClick;

            booksObj = GetChild("books");
            books    = new List <Image>()
            {
                GetChildImage("book0"),
                GetChildImage("book1"),
                GetChildImage("book2")
            };
            bookBtns = new List <Button>()
            {
                GetChildButton("bookBtn0"),
                GetChildButton("bookBtn1"),
                GetChildButton("bookBtn2")
            };
            mindBookMasks = new List <Image>()
            {
                GetChildImage("mindBookMask0"),
                GetChildImage("mindBookMask1"),
                GetChildImage("mindBookMask2")
            };
            for (int i = 0; i < bookBtns.Count; i++)
            {
                EventTriggerListener.Get(bookBtns[i].gameObject).onClick += onClick;
            }
        }
Beispiel #5
0
 protected override void Init()
 {
     EventTriggerListener.Get(Btn.gameObject).onClick = onClick;
 }
 // Use this for initialization
 void Start()
 {
     EventTriggerListener.Get(Btn.gameObject).onClick        = onClick;
     EventTriggerListener.Get(ViewBtn.gameObject).onClick    = onClick;
     EventTriggerListener.Get(TakeOffBtn.gameObject).onClick = onClick;
 }
Beispiel #7
0
 protected override void Init()
 {
     EventTriggerListener.Get(Block.gameObject).onClick = onClick;
     Block.fillAmount = 0;
 }