private void SettleBuffOnBoutStart(ObjectBase targetObj) { List <BuffInst> lstBuffInst = new List <BuffInst>(targetObj.lstBuffInst); foreach (var buffInst in lstBuffInst) { BuffTemplate template = BuffTemplateData.GetData(buffInst.tplId); if (template == null) { continue; } if (template.nType == BuffType.GET_BUFF_ROUND_START) { _battleModel.AddBuff(targetObj, targetObj, (uint)template.iEffectB, buffInst.effectVal); } if (buffInst.leftBout != -1) { //Debug.LogError("DecBuffLeftBout" + buffInst.leftBout); if (template.nTrigger == BuffTriggerType.BOUT_START) { _battleModel.DecBuffLeftBout(targetObj, buffInst, 1); } } } }