Broken sunflower
This commit is contained in:
parent
0c9ea6ed0f
commit
83d36f53b2
6 changed files with 211 additions and 6 deletions
|
|
@ -10,11 +10,9 @@ public partial class RuntimePlantData : Node2D, IEntity
|
|||
[Export]
|
||||
private int _maxHP;
|
||||
private int _hp;
|
||||
[Export]
|
||||
private int _line;
|
||||
public int Hp => _hp;
|
||||
public int MaxHp => _maxHP;
|
||||
public int Line => _line;
|
||||
public int Line {get; set;}
|
||||
public PlantResource Resource;
|
||||
|
||||
public override void _Ready()
|
||||
|
|
@ -41,7 +39,6 @@ public partial class RuntimePlantData : Node2D, IEntity
|
|||
Kill();
|
||||
}
|
||||
}
|
||||
|
||||
public void Kill()
|
||||
{
|
||||
LevelController.Instance.Pools.EntityField[Resource.Layer].Remove(GlobalPosition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue