public PlayerData() { thrustForcePoints = 1; resilience = 100f; playerState = PlayerManager.PlayerState.ASTEROID; showTutorial = true; playerLevel = 1; }
public void InitializeMissingData() { base.InitializeDeviceId(); playerLevel = playerLevel == 0 ? 1 : playerLevel; resilience = resilience < 100f ? 100f : resilience; if (currentExp > GetLevelExpNeeded()) { int exp = currentExp; currentExp = 0; CalculateLevel(exp); } switch (playerState) { case PlayerManager.PlayerState.COMET: break; default: playerState = PlayerManager.PlayerState.COMET; break; } }