예제 #1
0
 private void Init()
 {
     spawner   = EnemySpawner.Get();
     highScore = PlayerPrefs.GetInt("HighScore");
     UIManager = UIGameplayManager.Get();
     UIManager.RefreshScoreUI();
 }
예제 #2
0
파일: Gun.cs 프로젝트: InsaneFury/TP4_DDV2
 void FixedUpdate()
 {
     if (Input.GetButton("Fire1") && Time.time >= nextTimeToFire && !UIGameplayManager.Get().gameOver)
     {
         nextTimeToFire = Time.time + 1f / fireRate;
         Shoot();
     }
 }
예제 #3
0
 void Update()
 {
     if (Limiter.Get().playerIsOutsideTheLimit)
     {
         explosion.Play();
         Limiter.Get().playerIsOutsideTheLimit = false;
         AeroplaneUserControl2Axis.playerIsAlive = false;
         gameOver.SetActive(true);
         Cursor.lockState = CursorLockMode.None;
         Cursor.visible   = true;
         UIGameplayManager.Get().gameOver = true;
     }
 }
예제 #4
0
 private void Start()
 {
     player    = Player.Get();
     ugManager = UIGameplayManager.Get();
 }