public void Play(Goodness goodness) { string[] array = this.wordings[goodness]; this.txt.text = array[UnityEngine.Random.Range(0, array.Length)]; this.timer = 0f; base.enabled = true; Color color = this.txt.color; color.a = 1f; this.txt.color = color; }
public static bool Has(this Goodness goodness, Goodness someGood) { var has = (goodness & someGood) == someGood; return(has); }