コード例 #1
0
        private GameObject GetEffectRootObject(GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM oldResistance, string newResistanceIds)
        {
            List <GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM> uniqueResistanceListByJson = MonsterResistanceData.GetUniqueResistanceListByJson(newResistanceIds);
            GameObject result = null;

            for (int i = 0; i < uniqueResistanceListByJson.Count; i++)
            {
                if ("1" == uniqueResistanceListByJson[i].none && "1" != oldResistance.none)
                {
                    result = this.resistanceNone;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].fire && "1" != oldResistance.fire)
                {
                    result = this.resistanceFire;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].water && "1" != oldResistance.water)
                {
                    result = this.resistanceWater;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].thunder && "1" != oldResistance.thunder)
                {
                    result = this.resistanceThunder;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].nature && "1" != oldResistance.nature)
                {
                    result = this.resistanceNature;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].dark && "1" != oldResistance.dark)
                {
                    result = this.resistanceDark;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].light && "1" != oldResistance.light)
                {
                    result = this.resistanceLight;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].stun && "1" != oldResistance.stun)
                {
                    result = this.resistanceStun;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].skillLock && "1" != oldResistance.skillLock)
                {
                    result = this.resistanceSkillLock;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].sleep && "1" != oldResistance.sleep)
                {
                    result = this.resistanceSleep;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].paralysis && "1" != oldResistance.paralysis)
                {
                    result = this.resistanceParalysis;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].confusion && "1" != oldResistance.confusion)
                {
                    result = this.resistanceConfusion;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].poison && "1" != oldResistance.poison)
                {
                    result = this.resistancePoison;
                    break;
                }
                if ("1" == uniqueResistanceListByJson[i].death && "1" != oldResistance.death)
                {
                    result = this.resistanceDeath;
                    break;
                }
            }
            return(result);
        }
コード例 #2
0
        public void OnOpenWindow()
        {
            GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM        resistanceMaster           = MonsterResistanceData.GetResistanceMaster(this.uiParam.uniqueResistanceId);
            List <GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM> uniqueResistanceListByJson = MonsterResistanceData.GetUniqueResistanceListByJson(this.uiParam.oldResistanceIds);

            GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM oldResistance = MonsterResistanceData.AddResistanceFromMultipleTranceData(resistanceMaster, uniqueResistanceListByJson);
            this.statusResistance.CreateResistanceCoverEffect();
            int num = this.statusResistance.CreateResistanceIconEffect(oldResistance, this.uiParam.newResistanceIds);

            this.cutinController = PartsUpperCutinController.Create(this.cutinParentObject, num + 1);
        }