private List <ActionBallItemUI> GetBallsByType(ActionBallType type) { var rst_List = m_ActionBallItemList.FindAll((ActionBallItemUI) => ActionBallItemUI.Type == type && !ActionBallItemUI.IsPreUsed); rst_List.Reverse(); return(rst_List); }
public ActionBall(ActionBallType ballType) { Type = ballType; }
/// <summary> /// 获取未被使用的一种类型的球的数量 /// </summary> /// <param name="type"></param> /// <returns></returns> private int GetCount(ActionBallType type) { return(m_ActionBallItemList.FindAll((ActionBallItemUI) => ActionBallItemUI.Type == type && !ActionBallItemUI.IsPreUsed).Count); }