// Use this for initialization void Start() { satuKedua = GameObject.Find("Main Camera"); kameraScript = satuKedua.GetComponent <ButtonGame> (); satuKeduaScript = satuKedua.GetComponent <checkLine> (); satuKeduaText = gameObject.GetComponent <Text> (); }
// Use this for initialization void Start() { for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { cek[i, j] = false; } } for (int i = 0; i < 9; i++) { isVisited[i] = false; } for (int i = 0; i < 9; i++) { cost[i] = 1000000; } for (int i = 0; i < 9; i++) { parent[i] = -1; } temporary = GameObject.Find("Main Camera"); Peta = temporary.GetComponent <checkLine>(); temp1 = GameObject.Find("Prims"); Answer = temp1.GetComponent <Prims_Algo>(); Prims(); }
public int root; //diakses di gameplay, waktu pilih root // Use this for initialization void Start() { temporary = GameObject.Find("Main Camera"); Peeta = temporary.GetComponent <checkLine>(); for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { newPrims[i, j] = 0; } } for (int i = 0; i < 9; i++) { isVisited[i] = false; } for (int i = 0; i < 9; i++) { cost[i] = 1000000; } for (int i = 0; i < 9; i++) { parent[i] = -1; } Prims(); }
// Use this for initialization void Start() { satuKedua = GameObject.Find("Main Camera"); kameraScript = satuKedua.GetComponent <ButtonGame> (); satuKeduaScript = satuKedua.GetComponent <checkLine> (); satuKeduaText = gameObject.GetComponent <Text> (); //satuKeduaText.text="ḧuhuahdashdhasda"; }
// Use this for initialization void Start() { for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { cek[i, j] = false; } } temporary = GameObject.Find("Main Camera"); Peta = temporary.GetComponent <checkLine>(); //if(!origin_1 || !destination_1){ // return; //} //Renderer = GetComponent <LineRenderer> (); //lineRenderer.SetPosition (0, origin_1.position); //lineRenderer.SetWidth (3f, 3f); //dist = Vector3.Distance (origin_1.position, destination_1.position); }
// Use this for initialization void Start() { view = GameObject.Find("Main Camera"); checkLine = view.GetComponent <checkLine> (); }