void OnItemApply(int legionID, bool isApply) { if (isApply && LegionEvent.SendApplyJoinLegion != null) { LegionEvent.SendApplyJoinLegion(legionID); } else if (!isApply && LegionEvent.SendCancelApplyJoinLegion != null) { LegionEvent.SendCancelApplyJoinLegion(legionID); } }
void OnClickApply() { if (!isCouldClick) { return; } if (LegionEvent.SendApplyJoinLegion != null) { LegionEvent.SendApplyJoinLegion(legionID); } }