Example #1
0
    private IEnumerator game_start()
    {
        fade.SetActive(true);
        ani1 = QAZE_play.GetComponent <Animator>();
        ani2 = ui_start_tuto.GetComponent <Animator>();
        ani3 = GS_CDswitch.GetComponent <Animator>();
        se   = GS_SE.GetComponent <AudioSource>();
        ani1.SetTrigger("start");
        ani2.SetTrigger("start");
        ani3.SetTrigger("start");
        se.PlayOneShot(se_start);
        yield return(new WaitForSeconds(2f));

        SceneManager.LoadScene("game_demo");
    }
Example #2
0
 void Start()
 {
     QAZE.SetActive(true);
     Enter.SetActive(true);
     _Start.SetActive(true);
     Menu.SetActive(false);
     Menu_Play.SetActive(false);
     QAZE_play.SetActive(false);
     //play_on.SetActive(false);
     back.SetActive(false);
     Canvas_fade.SetActive(false);
     display_screen.SetActive(false);
     CD_II_Switch.SetActive(false);
     GS_bgm.SetActive(true);
     ui_tutorial.SetActive(false);
     UI_option.SetActive(false);
 }
Example #3
0
 public void PB_p_click()
 {
     /*
      * GameObject P_clone = (GameObject)Instantiate(Play);
      * P_clone.transform.SetParent(Canvas.transform,true);
      */
     Play.SetActive(true);
     display_screen.SetActive(true);
     CreateMode.SetActive(true);
     Option.SetActive(true);
     display.SetActive(true);
     Canvas_tips.SetActive(true);
     Menu_Play.SetActive(false);
     QAZE_play.SetActive(false);
     GS_cdswitch.SetActive(false);
     GS_bgm.SetActive(true);
     se.PlayOneShot(se_back);
 }
Example #4
0
 public void Play_p_click()
 {
     display_screen.SetActive(false);
     Play.SetActive(false);
     CreateMode.SetActive(false);
     Option.SetActive(false);
     display.SetActive(false);
     Canvas_tips.SetActive(false);
     QAZE.SetActive(false);
     QAZE_play.SetActive(true);
     Menu_Play.SetActive(true);
     GS_cdswitch.SetActive(true);
     GS_bgm.SetActive(false);
     se.PlayOneShot(se_on);
     if (tutorial_tips.get_tutokey())
     {
         ui_tutorial.SetActive(true);
     }
 }