Skip to content

Instantly share code, notes, and snippets.

View ppolsinelli's full-sized avatar

Pietro Polsinelli ppolsinelli

View GitHub Profile
/*
Use this as header for each of the missions of your game.
*/
VAR cmd=""
VAR doRun = false
LIST missionType = Sequential, Parallel
VAR tick = 0
VAR backgroundType = ""
@ppolsinelli
ppolsinelli / GoogleSheetDownload.cs
Last active April 5, 2023 09:11
Getting Google Sheet Data Updates In Unity
YOUR METHOD HERE - BEGIN
if (SOME_CONTROL_OF_YOURS && Application.isEditor)
{
Action<string> commCallback = (csv) =>
{
LoadCSVText(csv);
};
StartCoroutine(DownloadCSVCoroutine(spreadSheetId, commCallback, true, "YOUR_ASSET_NAME_NO_EXT", tabId));