public static void LogKeyFrame(string state) { if (!GameManagerScript.logging) { return; } //Debug.Log("Logging full game state"); // log the current full game state KeyFrameLogEntry entry = new KeyFrameLogEntry(); KeyFrameLogEntry.KeyFramePayload payload = new KeyFrameLogEntry.KeyFramePayload(); payload.board = BoxScript.GetBoardPayload(); payload.totalScore = BoxScript.score; payload.timeElapsed = Time.time; payload.totalInteractions = BoxScript.totalInteractions; payload.wordsPlayed = BoxScript.wordsPlayed; payload.state = state; entry.SetValues("BNW_GameState", "BNW_KeyFrame", payload); Log(entry); }