Esempio n. 1
0
    // BNW_DeselectAll logging
    public static void LogAction(string key)
    {
        if (!GameManagerScript.logging)
        {
            return;
        }

        LogEntry.LetterPayload[] letters = BoxScript.GetLetterPayloadsFromCurrentWord();
        DeselectWordLogEntry.DeselectWordPayload wordPayload = new DeselectWordLogEntry.DeselectWordPayload();
        wordPayload.word    = BoxScript.currentWord;
        wordPayload.letters = letters;

        DeselectWordLogEntry entry = new DeselectWordLogEntry();

        entry.SetValues(key, "BNW_Action", wordPayload);
        Log(entry);

        ++BoxScript.totalInteractions;
    }