Esempio n. 1
0
    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>();
    }
Esempio n. 2
0
    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>();
    }
Esempio n. 3
0
    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>();
    }
Esempio n. 4
0
    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>();
    }
Esempio n. 5
0
 public override void initSingleton()
 {
     askUI = transform.GetComponentInChildren <GameAskUI>();
 }
Esempio n. 6
0
 public override void initSingleton()
 {
     okObject = transform.Find("ok").gameObject;
     askUI    = transform.Find("ok").GetComponentInChildren <GameAskUI>();
 }