using System.Collections.Generic; namespace Gameplay.Buff { public class BuffAddBuffOnFriendRetreat : BaseBuff { // 标记类buff, 由外部检索触发 public int checkRange; public List buffIds; protected override void _OnInit() { base._OnInit(); buffIds = new List(); checkRange = _TryGetIntParam(0); var allParams = _TryGetFloatParams(); for (int i = 1; i < allParams.Length; i++) { var buffId = _TryGetIntParam(i); buffIds.Add(buffId); } } } }