예제 #1
0
    protected void OnMushroomHit(MushroomHitItem script)
    {
        int itemIndex = script.itemIndex;

        if (!this.m_MushroomPlantList.get_Item(itemIndex))
        {
            return;
        }
        this.m_RestoreList.Add(itemIndex);
    }
예제 #2
0
    protected void OnMushroomBeforeExplode(MushroomHitItem script)
    {
        int itemIndex = script.itemIndex;

        if (!this.m_MushroomPlantList.get_Item(itemIndex))
        {
            return;
        }
        this.GoPause();
        this.ExplosionMushrooms(itemIndex);
    }
예제 #3
0
    protected bool CheckMushroomCanHit(MushroomHitItem script)
    {
        if (this.status != MushroomHitStatus.Start)
        {
            return(false);
        }
        int itemIndex = script.itemIndex;

        if (!this.m_MushroomPlantList.get_Item(itemIndex))
        {
            return(false);
        }
        int      mushroomId = script.mushroomId;
        MoGuBiao moGuBiao   = DataReader <MoGuBiao> .Get(mushroomId);

        Dictionary <int, int> mushroomKillList;
        Dictionary <int, int> expr_3C = mushroomKillList = this.m_MushroomKillList;
        int num;
        int expr_3F = num = mushroomId;

        num = mushroomKillList.get_Item(num);
        expr_3C.set_Item(expr_3F, num + 1);
        this.CountScore();
        if (moGuBiao.result == 2)
        {
            this.ClearCombine();
        }
        else
        {
            this.AddCombine();
            if (moGuBiao.result == 3)
            {
                this.gameCD += (float)this.mushroomAddTime;
                this.SetGameTimeText();
            }
        }
        return(true);
    }
예제 #4
0
 protected void OnMushroomAfterExplode(MushroomHitItem script)
 {
     this.ReStart();
 }
예제 #5
0
    protected void OnMushroomWilt(MushroomHitItem script)
    {
        int itemIndex = script.itemIndex;

        this.m_RestoreList.Add(itemIndex);
    }