File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -4607,6 +4607,22 @@ public static void Ping(Action<LootLockerPingResponse> onComplete)
4607
4607
LootLockerAPIManager . Ping ( onComplete ) ;
4608
4608
}
4609
4609
4610
+ /// <summary>
4611
+ /// Get the Platform the user last used. This can be used to know what login method to prompt.
4612
+ /// </summary>
4613
+ /// <returns>The platform that was last used by the user</returns>
4614
+ public static Platforms GetLastActivePlatform ( )
4615
+ {
4616
+ if ( CurrentPlatform . Get ( ) == Platforms . None )
4617
+ {
4618
+ return ( Platforms ) PlayerPrefs . GetInt ( "LastActivePlatform" ) ;
4619
+ }
4620
+ else
4621
+ {
4622
+ return CurrentPlatform . Get ( ) ;
4623
+ }
4624
+ }
4625
+
4610
4626
4611
4627
#endregion
4612
4628
}
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public static string GetFriendlyString()
105
105
106
106
public static void Set ( Platforms platform )
107
107
{
108
+ PlayerPrefs . SetInt ( "LastActivePlatform" , ( int ) platform ) ;
108
109
current = GetPlatformRepresentation ( platform ) ;
109
110
}
110
111
You can’t perform that action at this time.
0 commit comments