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