コード例 #1
0
 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;
 }
コード例 #2
0
 private static void DrawSquareNode(SquareNode node, float size)
 {
     Gizmos.color = Color.yellow;
     Gizmos.DrawCube(node.Position, Vector3.one * size);
 }