Beispiel #1
0
    // BNW_LetterSelected or BNW_LetterDeselected logging
    public static void LogAction(string key, string letter, int x, int y)
    {
        if (!GameManagerScript.logging)
        {
            return;
        }

        //Debug.Log("Attempts to log data");
        LogEntry.LetterPayload payload = new LogEntry.LetterPayload();
        payload.SetValues(letter, x, y);

        LetterLogEntry entry = new LetterLogEntry();

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

        ++BoxScript.totalInteractions;
    }
Beispiel #2
0
    // BNW_LetterSelected or BNW_LetterDeselected logging
    public static void LogAction(string key, Vector2 pos)
    {
        if (!GameManagerScript.logging)
        {
            return;
        }

        //Debug.Log("Attempts to log data");
        string letter = BoxScript.grid[(int)pos.x, (int)pos.y].gameObject.GetComponent <BoxScript>().Letter;

        LogEntry.LetterPayload payload = new LogEntry.LetterPayload();
        payload.SetValues(letter, (int)pos.x, (int)pos.y);
        LetterLogEntry entry = new LetterLogEntry();

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

        // TODO: this needs to happen elsewhere
        ++BoxScript.totalInteractions;
    }