Exemplo n.º 1
0
 private void OnDrawGizmosSelected()
 {
     Gizmos.set_matrix(((Component)this).get_transform().get_localToWorldMatrix());
     Gizmos.set_color(Color.get_green());
     Gizmos.DrawLine(Vector3.get_zero(), Vector3.op_Multiply(Vector3.get_forward(), 1f));
     GizmosUtil.DrawWireCircleZ(Vector3.op_Multiply(Vector3.get_forward(), 0.0f), 0.2f);
     Gizmos.DrawIcon(((Component)this).get_transform().get_position(), "light_circle_green.png", false);
 }
Exemplo n.º 2
0
 private void OnDrawGizmosSelected()
 {
     Gizmos.matrix = base.transform.localToWorldMatrix;
     Gizmos.color  = Color.green;
     Gizmos.DrawLine(Vector3.zero, Vector3.forward * 1f);
     GizmosUtil.DrawWireCircleZ(Vector3.forward * 0f, 0.2f);
     Gizmos.DrawIcon(base.transform.position, "light_circle_green.png", false);
 }
Exemplo n.º 3
0
 public static void DrawWireCylinderZ(Vector3 pos, float radius, float height)
 {
     GizmosUtil.DrawWireCircleZ(Vector3.op_Subtraction(pos, new Vector3(0.0f, 0.0f, 0.5f * height)), radius);
     GizmosUtil.DrawWireCircleZ(Vector3.op_Addition(pos, new Vector3(0.0f, 0.0f, 0.5f * height)), radius);
 }
Exemplo n.º 4
0
 public static void DrawWireCylinderZ(Vector3 pos, float radius, float height)
 {
     GizmosUtil.DrawWireCircleZ(pos - new Vector3(0f, 0f, 0.5f * height), radius);
     GizmosUtil.DrawWireCircleZ(pos + new Vector3(0f, 0f, 0.5f * height), radius);
 }