public void DebugDraw()
        {
            if (!MyDebugDrawSettings.DEBUG_DRAW_CONVEYORS)
            {
                return;
            }

            Vector3 pos  = (ConnectingPosition1.LocalGridPosition + ConnectingPosition1.VectorDirection * 0.5f) * CubeBlock.CubeGrid.GridSize;
            Vector3 pos2 = (ConnectingPosition2.LocalGridPosition + ConnectingPosition2.VectorDirection * 0.5f) * CubeBlock.CubeGrid.GridSize;

            pos  = Vector3.Transform(pos, CubeBlock.CubeGrid.WorldMatrix);
            pos2 = Vector3.Transform(pos2, CubeBlock.CubeGrid.WorldMatrix);

            Color color = ConveyorLine.IsFunctional ? Color.Orange : Color.DarkRed;

            color = ConveyorLine.IsWorking ? Color.GreenYellow : color;

            MyRenderProxy.DebugDrawLine3D(pos, pos2, color, color, false);

            if (ConveyorLine == null)
            {
                return;
            }

            if (MyDebugDrawSettings.DEBUG_DRAW_CONVEYORS_LINE_IDS)
            {
                MyRenderProxy.DebugDrawText3D((pos + pos2) * 0.5f, ConveyorLine.GetHashCode().ToString(), color, 0.5f, false);
            }
        }
    private LineVariables m_LineVariables_script; //need to initialize at start
    private void Start()
    {
        m_someOtherScript = GameObject.Find("ConveyorLine");
        scriptToAccess    = m_someOtherScript.GetComponent <ConveyorLine>();

        LineSpeedInput = GameObject.Find("InputField_LineSpeed").GetComponent <InputField>();
    }
 private void CubeBlock_IsFunctionalChanged()
 {
     ConveyorLine.UpdateIsFunctional();
 }