Exemple #1
0
        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));
        }
Exemple #2
0
 public ActionModel(IAction action, ActionView actionInstance)
 {
     this.Action         = action;
     this.ActionInstance = actionInstance;
 }