public List <UIContextMenuItemData> GetMenuItemData() { List <UIContextMenuItemData> list = new List <UIContextMenuItemData>(); UIContextMenuItemData data = new UIContextMenuItemData(EBattleActionType.Move, OnRequestMoveRange); list.Add(data); data = new UIContextMenuItemData(EBattleActionType.Attack, null); list.Add(data); data = new UIContextMenuItemData(EBattleActionType.End_Turn, null); list.Add(data); return(list); }
public void FillData(UIContextMenuItemData data) { actionText.text = data.actionString; _actionListener = data.actionListener; }