// Use this for initialization void Start() { explode = GetComponentInChildren <ParticleSystem> (); //explode.Stop(); mouseClickShoot = GetComponent <PlayerShoot> () as MouseClickShoot; cur_score = scoreUIMgr.GetScore(); pre_score = cur_score; }
public void GameOver() { ResetUI.SetActive(true); bloodImg.enabled = true; GameCamera.transform.DOShakePosition(CameraShakeDuration, CameraShakeStrenth); player.GetComponent <PlayerShoot> ().enabled = false; player.GetComponent <PlayerMove> ().enabled = false; player.GetComponent <Player> ().enabled = false; anim.setIsDead(true); bloodMgr.enabled = false; gameState = GameState.isGameOver; gameTimeUI.Stop(); for (int k = 0; k < enemyGenFolder.childCount; k++) { EnermyGenerator e = enemyGenFolder.GetChild(k).GetComponent <EnermyGenerator>(); if (e != null) { e.enabled = false; } } sendScore.initialize(scoreMgr.GetScore()); scoreMgr.Stop(); }