예제 #1
0
    void Update()
    {
        SpriteRenderer resalt = gameObject.GetComponent <SpriteRenderer>();

        int Counter = GraphicsChenge.graphicschange();

        //クリック回数に応じてリザルトに画像を表示させたい
        if (Counter > change1)
        {
            resalt.sprite = Sprite1;
        }
        if (Counter > change2)
        {
            resalt.sprite = Sprite2;
        }
        if (Counter > change3)
        {
            resalt.sprite = Sprite3;
        }
        if (Counter > change4)
        {
            resalt.sprite = Sprite4;
        }
        if (Counter > change5)
        {
            resalt.sprite = Sprite5;
        }
        if (Counter > change6)
        {
            resalt.sprite = Sprite6;
        }
    }
예제 #2
0
    void Update()
    {
        int Count = GraphicsChenge.graphicschange();

        //リザルトからからタイトルへ移行
        if (Input.GetMouseButtonDown(0))
        {
            SceneManager.LoadScene("Title");
        }
    }
예제 #3
0
    void Update()
    {
        int hammercounter = GraphicsChenge.graphicschange();

        GetComponent <Text>().text = hammercounter.ToString();
    }