Beispiel #1
0
    public override void Show(bool state, DeathEvent data)
    {
        gameObject.SetActive(state);

        if (state)
        {
            name.text = data.name;
            var st = data.strench * gold.count.value;
            gold.Apply((long)st);
            desc.text = string.Format(data.desc, st);
        }
    }
Beispiel #2
0
 public void AddResourse(Gold gold, Resources res)
 {
     gold.Apply(res.count.Value);
 }