mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-27 01:16:07 +00:00
Upgrader, LevelUpSkill
This commit is contained in:
@@ -17,8 +17,6 @@ export class Player extends Component {
|
||||
private health: UnitHealth;
|
||||
private level: UnitLevel;
|
||||
|
||||
private xp: number;
|
||||
|
||||
public init(input: IInput, weapon: Weapon, maxHp: number, requiredLevelXps: number[]): void {
|
||||
this.input = input;
|
||||
this.weapon = weapon;
|
||||
@@ -39,6 +37,10 @@ export class Player extends Component {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
public get Weapon(): Weapon {
|
||||
return this.weapon;
|
||||
}
|
||||
|
||||
public get Collider(): Collider2D {
|
||||
return this.collider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user