예제 #1
0
 public void StartRemovingConditionInfo(ConditionInfo info)
 {
     if (RemovingInfos.Contains(info))
     {
         return;
     }
     ConditionInfos.Remove(info);
     RemovingInfos.Add(info);
     info.conditionUI.SetPositionIndex(-5);
 }
예제 #2
0
        public void RemoveConditionInfo(ConditionInfo info)
        {
            RemovingInfos.Remove(info);

            int index = 0;

            foreach (var item in ConditionInfos)
            {
                item.conditionUI.SetPositionIndex(index);
                index++;
            }
        }
예제 #3
0
        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);
        }