예제 #1
0
    // Update is called once per frame
    void Update()
    {
        float currentSize = (float)(depotBehaviour.getCurrentSize()) / depotBehaviour.getSize();

        if (currentSize != bar.fillAmount)
        {
            bar.fillAmount = Mathf.MoveTowards(bar.fillAmount, currentSize, Time.deltaTime * 0.8f);
        }
    }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     stats.text = depotABehaviour.getCurrentSize().ToString() + "/" + depotABehaviour.getSize().ToString();
 }