Пример #1
0
    public void ResetData()
    {
        breakWallNum.Value   = 0;
        kakeraCount.Value    = 0;
        isGameOver           = false;
        isGoal               = false;
        isFeverTouch         = false;
        clickNum             = 0;
        brokeWallId          = 0;
        failedNum            = 0;
        bufferTime           = 0;
        childPlayersr.sprite = zeroPenalty;
        heartEffect.SetActive(false);
        IntensiveIineEffect.SetActive(false);

        // PlayerのPositionを初期化
        Vector3 temp = transform.position;

        temp.x             = 0;
        temp.y             = -2.5f;
        transform.position = temp;


        AiriCommentText("画面をタップでスタートだよ!", 3);
        EndFever();
    }
Пример #2
0
    IEnumerator FeverCountDown()
    {
        heartEffect.SetActive(true);

        sources[1].clip = startFeverSound;
        sources[1].Play();

        isFeverTouch = true;
        tapObj.SetActive(true);
        yield return(new WaitForSeconds(0.3f));

        IntensiveIineEffect.SetActive(true);

        yield return(new WaitForSeconds(1.7f));

        m_speed = 0;
        ActiveBlock();
        heartEffect.SetActive(false);
        IntensiveIineEffect.SetActive(false);

        yield return(new WaitForSeconds(0.1f));

        float diff = -2.5f + breakWallNum.Value * 8.0f;

        iTween.MoveTo(
            this.gameObject,
            iTween.Hash(
                "position",
                new Vector3(0, diff, 0),
                "time", 1f,
                "oncomplete", "EndFever",
                "oncompletetarget", this.gameObject
                ));
        //Debug.Log("壊した枚数 : "+ breakWallNum.Value);
    }