Beispiel #1
0
 void Start()
 {
     drink   = GetComponent <DrinkScene>();
     denmoku = GetComponent <Denmoku>();
     meter   = GetComponent <DenmokuMeter>();
     this.DrinkSceneButton(false);
     this.DenmokuImage.transform.localPosition = new Vector2(0, -1500);
 }
Beispiel #2
0
    void Start()
    {
        for (int i = 0; i < hukidashiImage.Length; i++)
        {
            AnswerList[i].gameObject.SetActive(false);
            hukidashiImage[i].gameObject.SetActive(false);
        }

        //ゲームの初期状態を用意する処理
        if (this.ChangeGameMode)
        {
            this.GameMode = true;
        }
        else
        {
            this.GameMode = false;
        }
        button          = GetComponent <ButtonController>();
        denmoku         = GetComponent <Denmoku>();
        meter           = GetComponent <DenmokuMeter>();
        this.OriginPos1 = this.OrderPos[0];
        this.OriginPos2 = this.OrderPos[1];
        this.OriginPos3 = this.OrderPos[2];
        this.OrderCounterOFF();
        this.AnswerResultOFF();
        this.HukidashiOFF();
        this.NextGameFlg  = true;
        this.TapText.text = "タップしてスタート!";

        // BGM
        SoundManager.Instance.PlayBGM(BGMName.DrinkingParty);

        // クリア条件の設定
        if (this.GameMode)
        {
            this.ClearQuota = (int)(this.Limit * 0.8f) * this.HukidashiList.Length;
        }
        else
        {
            this.ClearQuota = (int)(this.Limit * 0.8f);
        }
        this.ClearScore = 0;
    }