예제 #1
0
    public void CopyPlayerProperties(PlayerProperties inPlayer)
    {
        sprite = inPlayer.GetSprite();

        alive      = inPlayer.GetAlive();
        playerType = inPlayer.GetPlayerType();
        moves      = inPlayer.GetMoves();

        level   = inPlayer.GetLevel();
        levelUp = inPlayer.GetLevelUp();

        baseStrength = inPlayer.GetBaseStrength();
        rateStrength = inPlayer.GetRateStrength();
        strength     = inPlayer.GetStrength();

        baseDexterity = inPlayer.GetBaseDexterity();
        rateDexterity = inPlayer.GetRateDexterity();
        dexterity     = inPlayer.GetDexterity();

        baseIntelligence = inPlayer.GetBaseIntelligence();
        rateIntelligence = inPlayer.GetRateIntelligence();
        intelligence     = inPlayer.GetIntelligence();

        totalPoints = inPlayer.GetTotalPoints();

        speed    = inPlayer.GetSpeed();
        attack   = inPlayer.GetAttack();
        defense  = inPlayer.GetDefense();
        accuracy = inPlayer.GetAccuracy();
        cooldown = inPlayer.GetCooldown();

        maxHealth     = inPlayer.GetMaxHealth();
        currentHealth = inPlayer.GetCurrentHealth();

        experienceNeeded = inPlayer.GetExperienceNeeded();
        experienceGained = inPlayer.GetExperienceGained();

        updated = true;
    }