#pragma warning restore 414

    IEnumerator ProcessTwitchCommand(string Command)
    {
        Command = Command.ToUpper().Trim();
        int Index = 0;

        yield return(null);

        if (!Ran)
        {
            Module.OnHighlight();
            yield break;
        }
        if (Command.Length != 2)
        {
            yield return("sendtochaterror I don't understand!");
        }
        else if (!"ABCD".Contains(Command[0]) || !"1234".Contains(Command[1]))
        {
            yield return("sendtochaterror I don't understand!");
        }
        else
        {
            for (int i = 0; i < 4; i++)
            {
                if (Command[0] == "ABCD"[i])
                {
                    Index = i * 4;
                }
            }
            for (int i = 0; i < 4; i++)
            {
                if (Command[1] == "1234"[i])
                {
                    Index += i;
                }
            }
            Gems[Index].OnInteract();
            if (ValidSpots.Contains(Index))
            {
                yield return("solve");
            }
            else
            {
                yield return("strike");
            }
        }
    }
Esempio n. 2
0
    private IEnumerator Highlight()
    {
        Bean.OnHighlight();
        yield return(new WaitForSeconds(0.9f));

        Bean.OnHighlightEnded();
        yield return(new WaitForSeconds(0.1f));
    }
 public void Select()
 {
     Highlight.On();
     if (ModSelectable.OnSelect != null)
     {
         ModSelectable.OnSelect();
     }
     if (ModSelectable.OnHighlight != null)
     {
         ModSelectable.OnHighlight();
     }
 }
#pragma warning restore 414

    IEnumerator ProcessTwitchCommand(string Command)
    {
        Command = Command.Trim().ToUpper();
        yield return(null);

        if (Command.ToLower() == "highlight")
        {
            sdijdnijknjdsanjkfdaknjfd.OnHighlight();
            yield break;
        }
        for (int i = 0; i < 4; i++)
        {
            if (Command == Foods[i].text.ToUpper())
            {
                Kanyes[i].OnInteract();
                yield break;
            }
        }
        yield return("sendtochaterror I don't understand!");
    }