Exemplo n.º 1
0
 // Player의 HP 차감
 public void PlayerAttacked()
 {
     player.player_HP -= player.BulletPower;
     this.SetHPBar();
     if (player.player_HP <= 0)
     {
         GamesManager.GetInstance().GameOver();
     }
 }
Exemplo n.º 2
0
    // 에너미가 죽었을 때 수신하는 함수.
    public void DeadEnemy()
    {
        this.AreaCount--;

        if (this.AreaCount <= 0)
        {
            GamesManager.GetInstance().ClearStage();
        }
    }
Exemplo n.º 3
0
 public void ClearStage()
 {
     // showClear = true;
     // showHUD = false;
     ClearUI.transform.GetChild(1).gameObject.GetComponent <Text>().text = GamesManager.GetInstance().stage.ToString();
     HUDUI.SetActive(false);
     ClearUI.SetActive(true);
     Invoke("ViewShop", 3f);
 }
Exemplo n.º 4
0
 public void ResetGame()
 {
     GameOverUI.SetActive(false);
     HUDUI.SetActive(true);
     // showHUD = false;
     // showOver = false;
     // GameObject.Destroy(GameObject.Find("World"));
     PlayerManager.GetInstance().InitPlayerInformation();
     GamesManager.GetInstance().RestartStage();
     // this.MakeRespawn();
 }