Esempio n. 1
0
        public void Setup(StatInstance _info)
        {
            info = _info;

            if (info.Info == null)
            {
                Destroy(gameObject);
                return;
            }

            OnStatChanged();
            info.OnValueChanged += OnStatChanged;
        }
Esempio n. 2
0
 public Modifier(StatInstance parent, float value)
 {
     Parent = parent;
     Value  = value;
 }
Esempio n. 3
0
 public Modifier(StatInstance parent)
 {
     Parent = parent;
     Value  = 0.0f;
 }