Skip to content

Commit

Permalink
Player ID is sent during analytics sending. Google Form is opened wit…
Browse files Browse the repository at this point in the history
…h Player ID filled in.
  • Loading branch information
Joshua-Dunne committed Mar 7, 2022
1 parent 870eea6 commit a3e0751
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RWM-P2-TEAM-C/Assets/Scripts/Server/AnalyticsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class GameState
public int defeatedEnemies = 0;
public int level = 0;
public string version = "week_1";
public string playerID;
}

public class AnalyticsManager : MonoBehaviour
Expand All @@ -27,6 +28,8 @@ void Awake()

data.level = SceneManager.GetActiveScene().buildIndex;
DontDestroyOnLoad(gameObject);

data.playerID = SystemInfo.deviceUniqueIdentifier;
}

/// <summary>
Expand Down Expand Up @@ -60,6 +63,9 @@ public IEnumerator PostMethod()
else
Debug.Log("Error sending data to the server: Error " + request.responseCode);
}


Application.OpenURL("https://docs.google.com/forms/d/e/1FAIpQLScnJGTnEkXljPbGThxiU4Gaf-wCLiUDk5fDGyjie5SX3kr9KQ/viewform?usp=pp_url&entry.560347647=" + data.playerID);
}

void Start() { }
Expand Down

0 comments on commit a3e0751

Please sign in to comment.