public override void AddAction(IAction action) { GameObject newActionIcon = Instantiate(actionIcon, actionMenu.transform); ActionView actionInstance = newActionIcon.GetComponent <ActionView>(); actionInstance.Load(action); actionList.AddLast(new ActionModel(action, actionInstance)); }
public ActionModel(IAction action, ActionView actionInstance) { this.Action = action; this.ActionInstance = actionInstance; }