Ejemplo n.º 1
0
 void Start()
 {
     position = transform.position;
     gpb      = GameObject.Find("progress_bar");
     scriptPB = (scr_progresse_bar)gpb.GetComponent(typeof(scr_progresse_bar));
     go       = GameObject.Find("dwarf_character");
     scriptsc = (scr_score)go.GetComponent(typeof(scr_score));
 }
Ejemplo n.º 2
0
 void Start()
 {
     init_score();
     Updatescore();
     gpb      = GameObject.Find("progress_bar");
     gds      = GameObject.Find("deathscreen");
     gdm      = GameObject.Find("death_msg");
     scriptPB = (scr_progresse_bar)gpb.GetComponent(typeof(scr_progresse_bar));
 }
Ejemplo n.º 3
0
 void Start()
 {
     position = transform.position;
     go       = GameObject.Find("dwarf_character");
     gh       = GameObject.Find("Character1_Hips");
     gpb      = GameObject.Find("progress_bar");
     scriptPB = (scr_progresse_bar)gpb.GetComponent(typeof(scr_progresse_bar));
     scriptsc = (scr_score)go.GetComponent(typeof(scr_score));
     script   = (scr_mouvement)go.GetComponent(typeof(scr_mouvement));
     scriptH  = (scr_dwarf_height)gh.GetComponent(typeof(scr_dwarf_height));
 }