Example #1
0
    private void ShowWave()
    {
        //Debug.Log ("ShowWave===");
        curDownTime        = (float)CommonDefineManager.Instance.CommonDefine.EndlessNextWaveTime;
        downWaveLabel.text = EctypeModel.Instance.curLoopNum.ToString();
        waveStartTip.SetActive(true);
        GameObject go = UI.CreatObjectToNGUI.InstantiateObj(waveStartTip, transform.Find("BottomParent"));

        waveStartTipScript = go.GetComponent <EndLessRewardTipRun>();
        waveStartTipScript.Show(this, EctypeModel.Instance.curLoopNum);
        waveStartTip.SetActive(false);
        //waveCountLabel.text = downWaveLabel.text;
    }
Example #2
0
    //
    void CreateWaveRun(int loopNum)
    {
        if (loopNum <= 0)
        {
            return;
        }
        prePassLoopNum = loopNum;
        isTipRunning   = true;
        waveRunCount++;
        SoundManager.Instance.PlaySoundEffect("Sound_UIEff_EndlessReward");
        waveRewardPrefab.SetActive(true);
        firstReward = NGUITools.AddChild(waveRewardParent, waveRewardPrefab);
        waveRewardPrefab.SetActive(false);
        EndLessRewardTipRun tipRun      = firstReward.GetComponent <EndLessRewardTipRun>();
        List <CGoodsInfo>   rewardGoods = EctypeModel.Instance.GetRewardByLoopNum(loopNum);

        tipRun.Show(this, loopNum, rewardGoods[0].itemID, rewardGoods[0].itemCount);
    }