Example #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        float scale = parent.numCoins() < 1024 ? Mathf.Sqrt(parent.numCoins()) / 32f : 1;

        if (scale > 0)
        {
            transform.localScale = new Vector3(scale, scale, scale);
        }
    }