protected void OnMushroomHit(MushroomHitItem script) { int itemIndex = script.itemIndex; if (!this.m_MushroomPlantList.get_Item(itemIndex)) { return; } this.m_RestoreList.Add(itemIndex); }
protected void OnMushroomBeforeExplode(MushroomHitItem script) { int itemIndex = script.itemIndex; if (!this.m_MushroomPlantList.get_Item(itemIndex)) { return; } this.GoPause(); this.ExplosionMushrooms(itemIndex); }
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); }
protected void OnMushroomAfterExplode(MushroomHitItem script) { this.ReStart(); }
protected void OnMushroomWilt(MushroomHitItem script) { int itemIndex = script.itemIndex; this.m_RestoreList.Add(itemIndex); }