5 override void DebugDraw()
13 Color color1 = Color.FromInt(m_Interactor.GetDebugColor().PackToInt());
14 Color color2 = Color.FromInt(m_Interactor.GetDebugColor().PackToInt());
26 string infoText =
string.Format(
" CON Pos: %1 Distance: %2 m ", idx, vector.Distance(m_Interactor.GetOwnerOrigin(), container.GetOwnerOrigin()));
27 origin = container.GetOwnerOrigin();
28 consumerIdx = container.GetLinkedInteractorIndex(m_Interactor);
30 if (container.IsResourceGainEnabled())
33 if (container.IsResourceDecayEnabled())
36 heightDiff = container.debugControlOffset * consumerIdx + container.debugControlOffset * 3;
38 Shape.CreateArrow(origin + Vector(0.0, heightDiff, 0.0), origin, 0.0, 0xFFFFFFFF, ShapeFlags.ONCE | ShapeFlags.NOZBUFFER);
39 Shape.CreateArrow(m_Interactor.GetOwnerOrigin(), (origin + Vector(0.0, heightDiff, 0.0)), 0.1, color1.PackToInt(), ShapeFlags.ONCE | ShapeFlags.NOZBUFFER |ShapeFlags.DEPTH_DITHER);
40 DebugTextWorldSpace.Create(m_Interactor.GetOwner().GetWorld(), infoText, DebugTextFlags.CENTER | DebugTextFlags.FACE_CAMERA | DebugTextFlags.ONCE, origin[0], origin[1] + heightDiff, origin[2], 10, 0xFFFFFFFF, color2.PackToInt(), consumerIdx + 1);
42 if (!container.GetComponent().IsDebugVisualizationEnabled())
43 container.DebugDraw(
false);