Exemplo n.º 1
0
            public void RemoveFromConditions(Sheet c, AT.Character.Condition.ICondition condition)
            {
                GameObject o;

                if (conditionsToTextObjects.TryGetValue(condition, out o))
                {
                    conditionsToTextObjects.Remove(condition);

                    Destroy(o);
                }
            }
Exemplo n.º 2
0
            public void ShowCondition(Sheet c, AT.Character.Condition.ICondition condition)
            {
                GameObject cText = Instantiate(UIManager.instance.conditionText);

                cText.transform.SetParent(Avatar, false);

                cText.transform.localPosition = new Vector3(0f, ConditionTextOffsetY(conditionsToTextObjects.Count), 0f);

                cText.GetComponent <ConditionIndicator> ().textObject.text = "";               //condition.Tag ();
                cText.GetComponent <ConditionIndicator> ().image.sprite    = condition.SpriteIcon();
                conditionsToTextObjects.Add(condition, cText);
            }
 public ConditionEffect(AT.Character.Condition.ICondition condition)
 {
     this.condition = condition;
 }