void Handle_BulletDestroy(Bullet b)
    {
        /// 1.使用webData 来区分网
        /// 2.使用FishOddsMulti来区分离子炮
        bool     isLizi        = b.FishOddsMulti != 2 ? false : true;
        WebDatas wdToIteration = isLizi ? Prefab_WebDataLizi : Prefab_WebDataNormal;

        WebScoreScaleRatio useWebData = null;


        for (int i = 0; i != wdToIteration._WebDatas.Length; ++i)
        {
            if (b.Score <= wdToIteration._WebDatas[i].StartScore)
            {
                useWebData = wdToIteration._WebDatas[i];
                break;
            }
        }

        if (useWebData == null)
        {
            useWebData = new WebScoreScaleRatio();//默认值
        }
        CreateWeb(b, useWebData, isLizi);
    }
Exemple #2
0
        void Handle_BulletDestroy(Bullet b)
        {
            // 1.使用webData 来区分网
            // 2.使用FishOddsMulti来区分离子炮
            bool     isLizi        = b.FishOddsMulti == 2;
            WebDatas wdToIteration = isLizi ? Prefab_WebDataLizi : Prefab_WebDataNormal;

            WebScoreScaleRatio useWebData = null;

            var count = wdToIteration._WebDatas.Length;

            for (var i = 0; i < count; ++i)
            {
                if (b.Score > wdToIteration._WebDatas[i].StartScore)
                {
                    continue;
                }
                useWebData = wdToIteration._WebDatas[i];
                break;
            }

            if (useWebData == null)
            {
                useWebData = count > 0 ? wdToIteration._WebDatas[count - 1] : new WebScoreScaleRatio();
            }
            CreateWeb(b, useWebData, isLizi);
        }