show range indicator when placing tower, cleanup tower info stats
This commit is contained in:
parent
e6b04bbdd1
commit
3a25a1bd87
9 changed files with 106 additions and 49 deletions
|
|
@ -59,6 +59,9 @@ fn register(
|
|||
unlocked: false,
|
||||
},
|
||||
Name::new("Core"),
|
||||
Health::new(100.0),
|
||||
Defense::new(5.0),
|
||||
Range(25.0),
|
||||
));
|
||||
commands.insert_resource(CoreResources {
|
||||
mesh: mesh,
|
||||
|
|
@ -78,9 +81,6 @@ fn populate(
|
|||
}
|
||||
commands.entity(trigger.target()).insert((
|
||||
Core,
|
||||
Health::new(100.0),
|
||||
Defense::new(5.0),
|
||||
Range(25.0),
|
||||
Mesh3d(res.mesh.clone()),
|
||||
MeshMaterial3d(res.material.clone()),
|
||||
CustomRangeIndicator::new(materials.add(StandardMaterial {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue