// Use this for initialization void Start() { timerSlider.maxValue = timeLeft; timerSlider.value = timeLeft; _scoreCounter = GetComponent <score_counter>(); }
void Start() { gameOvermenu.SetActive(false); rlm = GameObject.Find("GameController").GetComponent <randomLevelMaker_cfd> (); starsPickedUp = 0; bsae = GameObject.Find("GameController").GetComponent <BombSpawnAndExplode_cfd>(); pc = GetComponent <PlayerController> (); sc = GameObject.Find("GameController").GetComponent <score_counter> (); }
void OnMouseDown() { timer timer = scoreCounter.GetComponent <timer> (); score_counter scorecnt = scoreCounter.GetComponent <score_counter>(); scorecnt.playWrongPlasmidAudioClip(); timer.DecreaseTime(); }
void OnMouseDown() { score_counter scorecnt = scoreCounter.GetComponent <score_counter>(); scorecnt.playCorrectPlasmidAudioClip(); Debug.Log("Score." + scorecnt.score); scorecnt.score += 1; Debug.Log("Score: " + scorecnt.score); Debug.Log("Clicked the correct item on plasmid 2."); correctselect2 = true; }
// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody>(); fm = 3; spawnPos = transform.position; blocks = new LinkedList <BlockBehavior>(); foreach (BlockBehavior block in FindObjectsOfType <BlockBehavior>()) { if (block.CompareTag("Block")) { blocks.AddFirst(block.GetComponent <BlockBehavior>()); } } sC = FindObjectOfType <Text>().GetComponent <score_counter>(); }
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> (); }
// Use this for initialization void Start() { sounds = GameObject.Find("OnGameStart").GetComponents <AudioSource> (); movement.SetActive(false); Bomb_movement.SetActive(false); foreach (AudioSource sound in sounds) { sound.enabled = false; } pm = GameObject.Find("Pause Menu Manager").GetComponent <GreatArcStudios.PauseManager> (); pm.ourFunction_pause(); Pause.SetActive(false); timer = GameObject.Find("GameController").GetComponent <Timer> (); sc = GameObject.Find("GameController").GetComponent <score_counter> (); if (player != null) { sc.net_score += (int)timer.value_on_timer; } scoreCanvas_running.SetActive(false); }
void Start() { rlm = GameObject.Find("GameController").GetComponent <randomLevelMaker_cfd> (); sc = GameObject.Find("GameController").GetComponent <score_counter> (); player_dead = false; }