void Start()
 {
     select10Button = GameObject.Find("select10Button");
     select20Button = GameObject.Find("select20Button");
     select30Button = GameObject.Find("select30Button");
     selectText     = GameObject.Find("selectText");
     refObj         = GameObject.Find("unitychan");
     unityChanVoice = refObj.GetComponent <UnityChanVoicePlayer>();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     guButton    = GameObject.Find("GuButton");
     tyokiButton = GameObject.Find("TyokiButton");
     paButton    = GameObject.Find("PaButton");
     guButton.SetActive(false);
     paButton.SetActive(false);
     tyokiButton.SetActive(false);
     count          = 0;
     startFlg       = false;
     syncFlg        = false;
     refObj         = GameObject.Find("unitychan");
     unitychanVoice = refObj.GetComponent <UnityChanVoicePlayer>();
 }
Exemple #3
0
    public void buttonPush()
    {
        Debug.Log("Start Button Push !!");
        removeStartButton();
        startText.removeStartText();
        UnityChanChangeMotion unitychan_change_motion = GameObject.GetComponent <UnityChanChangeMotion>();

        unitychan_change_motion.changeMotion01();
        // UnityChanVoicePlayer.voicePlay01();             //私と一緒にゲームしよう
        refObj = GameObject.Find("unitychan");
        UnityChanVoicePlayer unitychanVoice = refObj.GetComponent <UnityChanVoicePlayer>();

        unitychanVoice.voicePlay01();
        //SceneManager.LoadScene("Zyanken", LoadSceneMode.Additive);


        //Destroy(start_button);
    }
Exemple #4
0
    /// <summary>
    /// 渡された処理を指定時間後に実行する。
    /// </summary>
    /// <param name="waitTime"></param>
    /// <returns></returns>
    private IEnumerator setButton(float waitTime)
    {
        yield return(new WaitForSeconds(waitTime));

        //Invoke("setButton02", 3.0f);
        select10Button.SetActive(true);
        select20Button.SetActive(true);
        select30Button.SetActive(true);
        selectText.SetActive(true);
        if (!voice02Flg)
        {
            // UnityChanVoicePlayer.voicePlay02();
            UnityChanVoicePlayer unityChanVoice = refObj.GetComponent <UnityChanVoicePlayer>();
            unityChanVoice.voicePlay02();
            voice02Flg = true;
        }
        UnityChanChangeMotion.animator_kohaku.SetBool("pushStartButton", false);
    }