Ejemplo n.º 1
0
    protected override void OnSet(ObjectiveController item)
    {
        Objectives = new ViewList <Objective, Objective_View>();

        Objectives.Init(MakeView, GetTarget, ListToShow(), OnRemove, ShowItemCount);

        item.OnComplete += OnItemUpdated;
    }
Ejemplo n.º 2
0
 public void SetEffects(List <UnitEffect> new_effects)
 {
     if (views == null)
     {
         views = new ViewList <UnitEffect, UI_EffectItemView>();
     }
     views.Init(MakeNewView, GetTransform, RemoveView, 10);
     UpdateViews(new_effects);
 }
Ejemplo n.º 3
0
    public void Init(TurnSystem turn_system)
    {
        AnchoredList.Init(TurnListEntries);

        views = new ViewList <ITurn, UI_TurnListItem>();

        views.Init(MakeItem, getTarget, RemoveView, 99);

        if (turn_system != null)
        {
            turn_system.OnListUpdated += OnListUpdate;
            OnListUpdate(turn_system.Turnables);
        }
    }
Ejemplo n.º 4
0
 public void Init(List <ScriptableUnitConfig> configs)
 {
     views = new ViewList <ScriptableUnitConfig, UI_UnitMiniView>();
     views.Init(MakeView, delegate
                { return(this.transform); }, configs, Remove, 100);
 }