Example #1
0
 void Start()
 {
     isDead        = false;
     lastSpawnTime = nextSpawnTime = 0.0f;
     om            = GameObject.Find("GameController").GetComponent <ObjectMatrix>();
     om.getObjectMatrix();
     rows    = om.rows;
     columns = om.columns;
     rlm     = GameObject.Find("GameController").GetComponent <randomLevelMaker>();
     rlm.generateLevel();
     fire_button_pressed = false;
     bombs_spawned       = 0;
 }
Example #2
0
 void Start()
 {
     player.GetComponent <power_pick_up> ().enabled    = true;
     player.GetComponent <PlayerController> ().enabled = true;
     ar_camera.GetComponent <player_control_direction_predictor> ().enabled = true;
     isDead        = false;
     lastSpawnTime = nextSpawnTime = 0.0f;
     om            = GameObject.Find("GameController").GetComponent <ObjectMatrix>();
     om.getObjectMatrix();
     rows    = om.rows;
     columns = om.columns;
     rlm     = GameObject.Find("GameController").GetComponent <randomLevelMaker_cfd>();
     rlm.generateLevel();
     //rlm.set_count_canvas ();
     fire_button_pressed = false;
     bombs_spawned       = 0;
     sc = GameObject.Find("GameController").GetComponent <score_counter> ();
 }