【3Dゲームエンジン】Unity質問スレッド11
レス数が900を超えています。1000を超えると表示できなくなるよ。
0904名前は開発中のものです。
2014/09/17(水) 01:46:01.90ID:dCsQf4slusing UnityEngine.UI;
using System.Collections;
public class hptest : MonoBehaviour {
Image hp;
float point;
// Use this for initialization
void Start () {
hp = GetComponent<Image>();
}
// Update is called once per frame
void Update () {
if (point < 1f) {
point += 0.5f * Time.deltaTime;
} else {
point = 0f;
}
hp.fillAmount = point;
}
}
レス数が900を超えています。1000を超えると表示できなくなるよ。