예제 #1
0
    // Use this for initialization
    void Start()
    {
        resultScore = ScoreText.getScore();
        animator    = player.GetComponent <Animator>();

        if (Player.getDeathFlg())
        {
            s = "GAME OVER";
            resultText.setResult(s);
            animator.SetBool("sad", true);
        }
        else
        {
            if (resultScore > happyScore)
            {
                s = "GAME COMPLETE";
                resultText.setResult(s);
                animator.SetBool("happy", true);
            }
            else
            {
                s = "GAME CLEAR";
                resultText.setResult(s);
                animator.SetBool("soso", true);
            }
        }
    }