/// <summary> /// 选择选项 /// </summary> /// <returns></returns> public virtual string SelectOption(int index) { if (!IsInOption()) { return(BaseConstMgr.STR_Inv); } CurSelectOptionIndex = Mathf.Clamp(index, 0, CurData.Option.Count - 1); CurSelectOption = CurData.GetOption(CurSelectOptionIndex); Callback_OnSelect?.Invoke(CurData, CurSelectOption, CurSelectOptionIndex); return(CurSelectOption); }