public override void initSingleton() { description = transform.Find("description/text").GetComponent <Text>(); for (int i = 0; i < GameDefine.MAX_SLOT; i++) { slots[i] = transform.Find("slot" + i).GetComponent <GameBattleItemUISlot>(); } askUI = GetComponentInChildren <GameAskUI>(); }
public override void initSingleton() { for (int i = 0; i < GameDefine.MAX_SAVE; i++) { slot[i] = transform.Find("item" + i).GetComponent <GameSLUISlot>(); } text = transform.Find("text").GetComponent <Text>(); loading = transform.Find("loading").GetComponent <Text>(); askUI = GetComponentInChildren <GameAskUI>(); }
void Awake() { for (int i = 0; i < MAX_SLOT; i++) { slot[i] = transform.Find("slot" + i).GetComponent <GameAlchemyUISlot>(); } text = transform.Find("text").GetComponent <Text>(); image = GetComponent <Image>(); askUI = GetComponentInChildren <GameAskUI>(); upAnimation = transform.Find("up").GetComponentInChildren <GameAnimation>(); downAnimation = transform.Find("down").GetComponentInChildren <GameAnimation>(); }
void Awake() { for (int i = 0; i < MAX_SLOT; i++) { slot[i] = transform.Find("slot" + i).GetComponent <GameItemUISlot>(); } text = transform.Find("text").GetComponent <Text>(); image = GetComponent <Image>(); askUI = GetComponentInChildren <GameAskUI>(); itemAskUI = GetComponentInChildren <GameItemAskUI>(); if (itemAskUI != null) { itemAskUI.gameObject.SetActive(false); } upAnimation = transform.Find("up").GetComponentInChildren <GameAnimation>(); downAnimation = transform.Find("down").GetComponentInChildren <GameAnimation>(); }
public override void initSingleton() { askUI = transform.GetComponentInChildren <GameAskUI>(); }
public override void initSingleton() { okObject = transform.Find("ok").gameObject; askUI = transform.Find("ok").GetComponentInChildren <GameAskUI>(); }