public void OnResetItem() { if (currentSelectedMonsterListItemView != null) { currentSelectedMonsterListItemView.GetComponent <FocusMarkView>().SetFocus(false); currentSelectedMonsterListItemView = null; } if (currentSelectePartyItemView != null) { currentSelectePartyItemView.GetComponent <FocusMarkView>().SetFocus(false); currentSelectePartyItemView = null; } }
public void OnClickedPartyItem(PartyItemView itemView) { if (currentSelectedMonsterListItemView != null) { partyView.TryAddPartyMember(currentSelectedMonsterListItemView); } else if (currentSelectePartyItemView != itemView) { if (currentSelectePartyItemView != null) { currentSelectePartyItemView.GetComponent <FocusMarkView>().SetFocus(false); } currentSelectePartyItemView = itemView; currentSelectePartyItemView.GetComponent <FocusMarkView>().SetFocus(true); } else { currentSelectePartyItemView.GetComponent <FocusMarkView>().SetFocus(false); currentSelectePartyItemView = null; } }