public void OnSolution(Memory m) { nor_in.onUse(); NHidden hid = findHiddenByTag(m.last_tag); if (hid != null) { hid.onUse(); } Output ou = findOutByKind(m.solve); if (ou != null) { ou.onUse(); } }
public void OnNewMemory(Memory m) { nor_in.removeAllAksons(); NHidden ni = findHiddenByTag(m.last_tag);// bool contains = (ni != null); if (!contains) { ni = createHide(m.last_tag, m.solve); } ni.addAkson(findOutByKind(m.solve).getGOPosition()); //ni.addAkson(findOutByKind(m.solve).getGOPosition()); if (!contains) { nor_hid = addToDize(nor_hid, ni); } refreshHiddenPos(); Debug.Log("ON NEW :" + m.last_tag + "-" + m.solve.ToString() + " | " + (ni == null) + " | " + nor_hid.Length); //nor_in.addAkson(ni.getGOPosition()); }