void Start() { MS = GameObject.Find("menu").GetComponent <controllerDFS>(); sh = Screen.height; MS.adiacenta[a][b] = true; costTxt = "0"; }
void Start() { //initializari sh = Screen.height; sw = Screen.width; menu = GameObject.Find("menu"); MS = menu.GetComponent <controllerDFS>(); GetComponent <SpriteRenderer>().color = MS.culoare_nod; }
void Start() { MS = GameObject.Find("menu").GetComponent <controllerDFS>(); destinatie = transform.position; destinatie += new Vector3(0, 0, 2); drum = destinatie; transform.position = destinatie; cc = GetComponent <SpriteRenderer>(); cc.color = culoare; but = new Rect[3]; PP = 1; //atribuiri sw = Screen.width; sh = Screen.height; textFieldN = 1f; //initializari viz = new bool[MS.q + 1]; noduri = new GameObject[MS.q + 1]; ns = new nod_controlDFS[MS.q + 1]; sr = new SpriteRenderer[MS.q + 1]; for (int i = 1; i <= MS.q; i++) { noduri[i] = GameObject.Find("nod " + i.ToString()); if (noduri[i] != null) { ns[i] = noduri[i].GetComponent <nod_controlDFS>(); sr[i] = noduri[i].GetComponent <SpriteRenderer>(); } } for (int i = 0; i < 1000; i++) { steps[i].culoareNod = new Color[MS.q + 1]; } GameObject aux; for (int i = 1; i <= MS.q; i++) { aux = GameObject.Find("nod " + i.ToString()); if (aux != null) { aux.GetComponent <nod_controlDFS>().skin.label.normal.textColor = Color.red; } } hlColor = hlTrue; dfs(sel); getStep(3, hlFalse, -1); setStep(1); }
public Color RT; //relased text void Start() { //atribuiri MS = GameObject.Find("menu").GetComponent <controllerDFS>(); nodDePornire = GameObject.Find("nod de pornire").GetComponent <InputField>(); }