public void StartRemovingConditionInfo(ConditionInfo info) { if (RemovingInfos.Contains(info)) { return; } ConditionInfos.Remove(info); RemovingInfos.Add(info); info.conditionUI.SetPositionIndex(-5); }
public void RemoveConditionInfo(ConditionInfo info) { RemovingInfos.Remove(info); int index = 0; foreach (var item in ConditionInfos) { item.conditionUI.SetPositionIndex(index); index++; } }
public void AddCondition(WinCondition condition) { ConditionInfo info = new ConditionInfo(); info.condition = condition; //TODO create conditionUIobject somewhere //info.conditionUI = GameUI.Instance.AddUICondition(); info.UpdateUI(); ConditionInfos.Add(info); info.conditionUI.SetPositionIndex(ConditionInfos.Count); }