Example #1
0
    public void DisplayNodes(int index, ODODDQQO soi, GameObject sso_go)

    {
        so_go = sso_go;
        List <Vector2> tmpNodes = new List <Vector2>();

        if (soi != null)
        {
            tmpNodes.AddRange(soi.nodeList);
        }

        if (so_go != null && tmpNodes.Count == 0)
        {
            List <Vector2> arr = ODQQQCQQOD.OCCOCQCDDD(2, so_go, OODCCQQQCC.traceOffset);
            if (arr != null)
            {
                if (arr.Count > 1)
                {
                    tmpNodes = arr;
                }
            }
        }
        bool clamped = false;

        so         = soi;
        sideObject = index;
        if (so_editor == null)
        {
            try{
                so_editor = new ODQQQCQQOD(position, tmpNodes, clamped);
            }catch {
            }
        }



        if (so_editor.ODQCCCQDDQ.Count > 0)
        {
            if ((Vector2)so_editor.ODQCCCQDDQ[0] == (Vector2)so_editor.ODQCCCQDDQ[so_editor.ODQCCCQDDQ.Count - 1])
            {
                so_editor.closed = true;
                so_editor.ODQCCCQDDQ.RemoveAt(so_editor.ODQCCCQDDQ.Count - 1);
            }
        }
        if (tmpNodes.Count != 0)
        {
            Rect rect = new Rect(stageSelectionGridWidth, 0, Screen.width - stageSelectionGridWidth, Screen.height);
            so_editor.FrameSelected(rect);
        }
        OODCCQQQCC.OCOCOODCCQ(index, soi, sso_go, so_editor);
        return;
    }
public void DisplayNodes (int index, ODODDQQO soi, GameObject sso_go)

{
so_go = sso_go;
List<Vector2> tmpNodes = new List<Vector2>();
if(soi != null) tmpNodes.AddRange(soi.nodeList);

if(so_go != null && tmpNodes.Count == 0){

List<Vector2> arr = ODQQQCQQOD.OCCOCQCDDD(2, so_go, OODCCQQQCC.traceOffset);
if(arr != null){
if(arr.Count > 1){
tmpNodes = arr;
}
}
}
bool clamped = false;
so = soi;
sideObject = index;
if (so_editor == null){
try{
so_editor = new ODQQQCQQOD(position, tmpNodes, clamped);
}catch{
}
}



if(so_editor.ODQCCCQDDQ.Count > 0){
if((Vector2)so_editor.ODQCCCQDDQ[0] == (Vector2)so_editor.ODQCCCQDDQ[so_editor.ODQCCCQDDQ.Count - 1]){

so_editor.closed = true;
so_editor.ODQCCCQDDQ.RemoveAt(so_editor.ODQCCCQDDQ.Count - 1);
}
}
if(tmpNodes.Count != 0){
Rect rect = new Rect(stageSelectionGridWidth, 0, Screen.width - stageSelectionGridWidth, Screen.height);
so_editor.FrameSelected(rect);
}
OODCCQQQCC.OCOCOODCCQ(index, soi, sso_go, so_editor);
return;
}