disable resource collection outside of core range, disable purchase buttons if too much money
This commit is contained in:
parent
6a4978041c
commit
e6b04bbdd1
8 changed files with 97 additions and 56 deletions
|
|
@ -5,7 +5,7 @@
|
|||
use bevy::prelude::*;
|
||||
use building::{BuildingInfo, BuildingPreview, Core, PREVIEW_ALPHA, PopulatePlacedBuilding};
|
||||
use combat::{Defense, Health, Range};
|
||||
use ui_range_indicator::{CustomRangeIndicator, DisplayCustomRangeIndicator};
|
||||
use ui_range_indicator::CustomRangeIndicator;
|
||||
|
||||
pub struct BuildingCorePlugin;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ fn populate(
|
|||
Core,
|
||||
Health::new(100.0),
|
||||
Defense::new(5.0),
|
||||
Range(20.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