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); } }
public void AddResourse(Gold gold, Resources res) { gold.Apply(res.count.Value); }