using System; using System.Collections.Generic; public partial class AttrFruitConfig { public int basicUseLimit { get { var realmLevel = PlayerDatas.Instance.baseData.realmLevel; int maxCnt = 0; for (int i = 0; i < MaxUseCnt.Length; i++) { if (realmLevel >= MaxUseCnt[i].x) { maxCnt = MaxUseCnt[i].y; } else { break; } } return maxCnt; } } }