示例#1
0
        public static void DrawBox(Transform center, Vector3 size, Color color)
        {
            var box = new KaiTool_Box(center, size);

            box.DrawGizmos(color);
        }
示例#2
0
        private void OnDrawGizmos()
        {
            var cube = new KaiTool_Box(m_middlePoint, new Vector3(m_halfExtents.x * 2, m_halfExtents.y * 2, (m_halfExtents.z + m_detectLength / 2) * 2));

            cube.DrawGizmos(Color.blue);
        }