예제 #1
0
    void Update()
    {
        Vector2 pos = camera.transform.localPosition;

        float udt = Time.unscaledTime - startTime;

        drawer.setNumber((int)(Mathf.Min(1.0f, udt / inTime) * scoreBoard.score));
        drawer.draw(pos.x + 0.2F, pos.y - 0.4f, 0.012f);

        if (udt > inTime + 1.3f)
        {
            drawer.setNumber(Utils.highScore);
            drawer.draw(pos.x + 1f, pos.y - 1.48f, 0.006f);
        }
    }
예제 #2
0
    void Update()
    {
        float nw = width * (1 - player.shootOverload);

        v2.x = v3.x = nw;

        sprite.OverrideGeometry(new Vector2[] { v0, v1, v2, v3 }, vertices);

        numbers.setNumber(scoreBoard.score);
        var pos = camera.transform.localPosition;

        numbers.draw(9 + pos.x, 4.3f + pos.y, 0.0066f);
    }