Skip to main content

Class PlayerData

Declaration
public static class PlayerData

Properties

Level

Declaration
public static ulong Level { get; set; }

FirstSession

First session of the first install, for update users, this is not the first session Do not use this before PlayerDataManager initialization (which must be the very first second of the gameinitialization) Use TryGetFirstSession

Declaration
public static bool FirstSession { get; }

AppVersion

Do not use this before PlayerDataManager initialization (which must be the very first second of the gameinitialization) Use Application.version instead

Declaration
public static string AppVersion { get; set; }

IsGameUpdated

Only relevant in first Session of the new Version install or update. In First Session of updated version, tells if the game is updated or newly installed.

Declaration
public static bool IsGameUpdated { get; }

PreviousVersion

Only relevant in first Session of the new Version update. In First Session of updated version, tells the previous version if the game is updated. If newly installed, or not in first session, returns null.

Declaration
public static string PreviousVersion { get; }

Methods

SaveManually()

Declaration
public static void SaveManually()

TryGetFirstSession(out bool)

Declaration
public static bool TryGetFirstSession(out bool isFirstSession)
Returns

System.Boolean

Parameters
TypeName
System.BooleanisFirstSession