private void DrawRectDimensions(Vector3 center) { Vector2 dimensions = new Vector2 ( 1.0f + 0.2f * Mathf.Sin(m_phase), 1.0f + 0.2f * Mathf.Sin(m_phase + 0.6f * Mathf.PI) ); DebugUtil.DrawRect2D(center + m_basePos, m_baseRotDeg, dimensions, Color.white); }
private void DrawRectDimensions(Vector3 center) { Vector2 dimensions = new Vector2 ( 1.0f + 0.2f * Mathf.Sin(m_phase), 1.0f + 0.2f * Mathf.Sin(m_phase + 0.6f * Mathf.PI) ); Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.7f, 0.2f, 0.2f)); DebugUtil.DrawRect2D(center + m_basePos, m_baseRotDeg, dimensions, color, true, m_style); }