Exemple #1
0
 public PlayerData()
 {
     thrustForcePoints = 1;
     resilience        = 100f;
     playerState       = PlayerManager.PlayerState.ASTEROID;
     showTutorial      = true;
     playerLevel       = 1;
 }
Exemple #2
0
    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;
        }
    }