UWCharacter.AddXP C# (CSharp) Method

AddXP() public method

Adds an XP reward to the character.
public AddXP ( int xp ) : void
xp int Xp.
return void
    public void AddXP(int xp)
    {
        EXP+=xp;
                if (EXP<=600)
                {//1
                        SetCharLevel(1);
                }
                else if(EXP<=1200)
                {//2
                        SetCharLevel(2);
                }
                else if(EXP<=1800)
                {//3
                        SetCharLevel(3);
                }
                else if(EXP<=2400)
                {//4
                        SetCharLevel(4);
                }
                else if(EXP<=3000)
                {//5
                        SetCharLevel(5);
                }
                else if (EXP<=3600)
                {//6
                        SetCharLevel(6);
                }
                else if(EXP<=4200)
                {//7
                        SetCharLevel(7);
                }
                else if(EXP<=4800)
                {//8
                        SetCharLevel(8);
                }
                else if(EXP<=5400)
                {//9
                        SetCharLevel(9);
                }
                else if(EXP<=6000)
                {//10
                        SetCharLevel(10);
                }
                else if (EXP<=6600)
                {//11
                        SetCharLevel(11);
                }
                else if (EXP<=7200)
                {//12
                        SetCharLevel(12);
                }
                else if (EXP<=7800)
                {//13
                        SetCharLevel(13);
                }
                else if (EXP<=8400)
                {//14
                        SetCharLevel(14);
                }
                else if (EXP<=9000)
                {//15
                        SetCharLevel(15);
                }
                else if (EXP<=9600)
                {
                        SetCharLevel(16);
                }
                else
                {
                    EXP=9600;
                    SetCharLevel(16);
                }
    }