Exemple #1
0
    void NextRoomGo()
    {
        UI_Tools.Instance.HideUI(eUIType.PF_UI_STAGESELECT);
        GameObject go    = UI_Tools.Instance.ShowUI(eUIType.PF_UI_STAGE);
        UI_Stage   stage = go.GetComponent <UI_Stage>();

        stage.Init();
    }
Exemple #2
0
    public override void OnDestroy()
    {
        GameEventDispatcher.Inst.removeEventListener(GameEventID.U_RapidClearRespond, RapidClearRespondHandler);
        GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_StageDataRefresh, OnStageDataRefreshed);

        mStageT = null;
        mEnermyList.Clear();
        mEnermyList = null;
        mItemsList.Clear();
        mItemsList = null;

        mInst = null;
    }
Exemple #3
0
    public override void InitUIData()
    {
        base.InitUIData();

        for (int i = 0, j = StarImgs.Length; i < j; i++)
        {
            StarImgs[i] = selfTransform.FindChild("Panel/TopObj/Stars/StarsFg/Image" + i).GetComponent <Image>();
        }

        EnermyListTrans = selfTransform.FindChild("Panel/LeftObj/Enemys/List/Grid");
        ItemListTrans   = selfTransform.FindChild("Panel/LeftObj/Items/List/Grid");

        ResouceObj3 = selfTransform.FindChild("Panel/LeftObj/Rewards/Grid/Resource3").gameObject;

        mInst = this;

        GameEventDispatcher.Inst.addEventListener(GameEventID.U_RapidClearRespond, RapidClearRespondHandler);
        GameEventDispatcher.Inst.addEventListener(GameEventID.UI_StageDataRefresh, OnStageDataRefreshed);
    }