Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void FillData(UIContextMenuItemData data)
 {
     actionText.text = data.actionString;
     _actionListener = data.actionListener;
 }