Example #1
0
 public NextNNLink(NextNNNode nodeFrom0, NextNNNode nodeTo0, NextNNGlobal global0)
 {
     nodeFrom = nodeFrom0;
     nodeTo   = nodeTo0;
     global   = global0;
     CreateLink();
 }
Example #2
0
 public NextNNNode(int layer0, int indexX0, int indexY0, NextNNGlobal global0)
 {
     layer  = layer0;
     indexX = indexX0;
     indexY = indexY0;
     global = global0;
     global.nodes.Add(this);
     index = global.nodes.Count - 1;
     UpdateGo();
     UpdateLinks();
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        int num       = 5;
        int numLayers = num;
        int numX      = num;
        int numY      = num;

        global          = new NextNNGlobal(numLayers, numX, numY);
        global.distNear = distNear;
        global.CreateNodes();
        InvokeRepeating("CreateValue", 1, 1);
    }