Remove edge search
This commit is contained in:
parent
d041bcd9bb
commit
3f208bb29c
@ -87,11 +87,8 @@ class Zones extends Phaser.Scene {
|
||||
drawEdges(edgeData) {
|
||||
this.graphics.clear();
|
||||
edgeData.forEach((e) => {
|
||||
const drawEdge = this.nodes.filter(n => (
|
||||
e[0] === n.id || e[1] === n.id
|
||||
));
|
||||
const nodeA = this.nodes[drawEdge[0].id];
|
||||
const nodeB = this.nodes[drawEdge[1].id];
|
||||
const nodeA = this.nodes[e[0]];
|
||||
const nodeB = this.nodes[e[1]];
|
||||
if (nodeA.success && nodeB.success) {
|
||||
this.graphics.lineStyle(10, 0xfff00f, 0.2);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user