コード例 #1
0
    void PjDevelopment()
    {
        int exp        = worldEnemy.Base.Exp;
        int enemyLevel = worldEnemy.Level;

        int expGain = Mathf.FloorToInt((exp * enemyLevel) / 7);

        PlayerUnit.saera.Exp += expGain;
        SaeraHud.SetExp();
        while (PlayerUnit.saera.CheckForLevelUp())
        {
            SaeraHud.SetLevel();
            Debug.Log("Has subido de nivel");
            SaeraHud.SetExp();
        }
    }