示例#1
0
    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;
    }
示例#2
0
        public static bool Has(this Goodness goodness, Goodness someGood)
        {
            var has = (goodness & someGood) == someGood;

            return(has);
        }