Exemple #1
0
    public void OnGameStartButton()
    {
        if (ready == true)
        {
            SoundManager.AssembleSound();

            SceneStack.SetBody(bod);
            SceneStack.SetEngine(boo);
            SceneStack.SetWeapon(wea);
            SceneManager.LoadScene(SceneStack.GetNextScene());
        }
    }
Exemple #2
0
 public static void SetComponent(string component)
 {
     if (component == "body1")
     {
         SoundManager.AssembleSound();
         // 기존 body 삭제
         body2.SetActive(false);
         bod = "body1";
         body1.SetActive(true);
         // 현재 body 생성
     }
     else if (component == "body2")
     {
         SoundManager.AssembleSound();
         body1.SetActive(false);
         bod = "body2";
         body2.SetActive(true);
     }
     else if (component == "booster1")
     {
         SoundManager.AssembleSound();
         booster2.SetActive(false);
         boo = "booster1";
         booster1.SetActive(true);
     }
     else if (component == "booster2")
     {
         SoundManager.AssembleSound();
         booster1.SetActive(false);
         boo = "booster2";
         booster2.SetActive(true);
     }
     else if (component == "weapon1")
     {
         SoundManager.AssembleSound();
         wea = "weapon1";
     }
     else if (component == "weapon2")
     {
         SoundManager.AssembleSound();
         wea = "weapon2";
     }
     else if (component == "weapon3")
     {
         SoundManager.AssembleSound();
         wea = "weapon3";
     }
 }