public SquareEdgeNode(Vector3 squareEdgePosition, float squakeSideSize, bool active) : base(squareEdgePosition) { Above = new SquareNode(squareEdgePosition + Vector3.forward * (squakeSideSize / 2f)); Right = new SquareNode(squareEdgePosition + Vector3.right * (squakeSideSize / 2f)); Active = active; }
private static void DrawSquareNode(SquareNode node, float size) { Gizmos.color = Color.yellow; Gizmos.DrawCube(node.Position, Vector3.one * size); }