private int health; · private float decimalHealth; · // .... · decimalHealth += 1 * Time.deltaTime; · health = Mathf.RoundToInt( decimalHealth ) ;.
確定! 回上一頁