public void AddTrust(float modifier) { trust += modifier; UITrust.GetComponent <Slider>().value = trust; if (modifier > 0.3f && GM) { foreach (GameObject chara in GM.characters) { chara.GetComponent <Character_r>().AddTrust(modifier * 0.25f); } } }
public void AddTrust(int modifier) { trust += modifier; UITrust.GetComponent <Slider>().value = trust; }