void Exchange(NNRepresentative[] nets, int index1, int index2) { NNRepresentative temp = nets[index1]; nets[index1] = nets[index2]; nets[index2] = temp; }
public virtual void ConnectTarget(NNRepresentative NN, GameObject target, int index) { NN.gameObject.name = index + ""; target.name = index + ""; target.GetComponent <NNRepresentative>().Inicialize(NN.transform); target.GetComponent <NNRepresentative>().Load(targetsID); if (index > 0) { target.GetComponent <NNRepresentative>().Hide(); } }