diff --git a/Packages/com.trytalo.talo/Runtime/APIs/PlayersAPI.cs b/Packages/com.trytalo.talo/Runtime/APIs/PlayersAPI.cs index 1d3c28a..af126bd 100644 --- a/Packages/com.trytalo.talo/Runtime/APIs/PlayersAPI.cs +++ b/Packages/com.trytalo.talo/Runtime/APIs/PlayersAPI.cs @@ -26,6 +26,18 @@ public async Task Identify(string service, string identifier) InvokeIdentifiedEvent(); } + public async Task IdentifySteam(string ticket, string identity = "") + { + if (string.IsNullOrEmpty(identity)) + { + await Identify("steam", ticket); + } + else + { + await Identify("steam", $"{identity}:{ticket}"); + } + } + public async Task Update() { var uri = new Uri($"{baseUrl}/{Talo.CurrentPlayer.id}");