Beispiel #1
0
    public void DanmuClicked(DanmuMode2 danmu)
    {
        if (danmu.isBad)
        {
            if (danmu.isBig)
            {
                GainEnegy(1);
                GetScore(3);
                mUICtrl.ShowDamageAmountEffect(danmu.transform.position, 3);
            }
            else
            {
                GainEnegy(2);
                GetScore(5);
                mUICtrl.ShowDamageAmountEffect(danmu.transform.position, 3);
            }
        }
        else
        {
            GetScore(-1);
            mUICtrl.ShowDamageAmountEffect(danmu.transform.position, -1);
        }

        danmu.OnDestroy();
        state.Danmus.Remove(danmu);
    }
Beispiel #2
0
    public void DestroyBadRandomly(int num)
    {
        List <DanmuMode2> toClean = randomPickBadDanmu(num);

        for (int i = 0; i < toClean.Count; i++)
        {
            DanmuMode2 danmu = toClean[i];
            danmu.OnDestroy();
            state.Danmus.Remove(danmu);
        }
    }