Esempio n. 1
0
    public float answerTime = 0.0f; //出題から回答までの時間をとる



    public void Start()
    {
        sr = GameObject.Find("score").GetComponent <ScoreTest>();

        resultObj = GameObject.Find("Result");                    //シーン内からResultゲームオブジェクトを探してくる

        CharaAnimator = GetComponent <Animator>();                //このオブジェクトからアニメーターを取得
            ResultAnimator = resultObj.GetComponent <Animator>(); //シーンからアニメーターを取得


        //ResultTest rTest = resultObj.GetComponent<ResultTest>();
    }
Esempio n. 2
0
    void Start()
    {
        scoreTest = GetComponent <ScoreTest>();
        number_TD = PL.GetTotalDamage;
        number_MC = PL.GetMaxComboCount;
        //number_TD = scoreTest.totalDamage_Nomber;
        //number_MC = scoreTest.maxCombo_Nomber;
        onlyOne = true;

        totalDamage.alpha = 0.0f;   // 評価を初めは透明にする
        maxCombo.alpha    = 0.0f;
        scoreName.alpha   = 0.0f;
        score.alpha       = 0.0f;
        totalDamage.transform.localScale = Vector3.one * 3.0f;// サイズを調整
        maxCombo.transform.localScale    = Vector3.one * 3.0f;
        scoreName.transform.localScale   = Vector3.one * 2.0f;
        score.transform.localScale       = Vector3.one * 3.0f;

        animationSequence = 0;
        animationNext     = true;
        scoreView         = false;
    }