public void Start(){ velicinaObjekta = ""; type = 1; veza = srednjaKocka.GetComponent<srednjiCubeClick> (); vezaNaLerp = enemy.GetComponent<LerpAnova1> (); vezaZaImena = ime.GetComponent<getPlayer> (); vezaNaKrug = startPoint.GetComponent<krugClickAnova1> (); flagZapis = 0; destroyerScore = 0; imePomagala = PlayerPrefs.GetString("tipPomagala"); pomagalo.text = imePomagala; }
// Use this for initialization void Start() { vezaSaKrugom = krug.GetComponent <krugClickAnova1> (); realTime = 0; prijelaz = 0f; distance = 48f; time = 10; score = 0; level = 3; igra = false; strana = ""; unistio = ""; totalObjects = 0; srednjaKocka.SetActive(true); random = Random.Range(1, 4); pos = transform.position; if (random == 1) { pos.x = 289; pos.y = 141; srednjaKocka.transform.position = pos; strana = "Lijevo"; } else if (random == 2) { pos.x = 293; pos.y = 141; srednjaKocka.transform.position = pos; strana = "Sredina"; } else { pos.x = 297; pos.y = 141; srednjaKocka.transform.position = pos; strana = "Desno"; } if (vezaSaKrugom.kruzic.activeSelf == false) { srednjiStart = srednjaKocka.transform.position; srednjiEnd = srednjaKocka.transform.position + Vector3.down * distance; } }
// Use this for initialization void Start() { skriptica = enemy.GetComponent <LerpAnova1>(); start = startPoint.GetComponent <krugClickAnova1>(); keavnasKlik = keanvas.GetComponent <canvasClickAnova1>(); }