Esempio n. 1
0
    public void Test(GameObject obj, RuleVeredict veredict)
    {
        NameSource nameSrc = obj.GetComponent <NameSource>();

        if (nameSrc)
        {
            if (nameSrc.GetNameSource() == nameToIgnore)
            {
                veredict.AddScore(-1);
                veredict.AddFailureReason("You did not ignore message from " + nameToIgnore);
            }
        }
    }
Esempio n. 2
0
        /// <summary>
        /// Convert to Thompson epsilon-NFA.
        /// </summary>
        public Nfa <string> ToNfa()
        {
            var nameSource = new NameSource();

            return(MkNfa(nameSource.Next));
        }