//2秒で-1回復 ゲージ IEnumerator GaugeRecovery() { InkAmout.increase_Gauge(0.1f); yield return(new WaitForSeconds(1.0f)); StartCoroutine(GaugeRecovery()); }
IEnumerator obj_destroy() { yield return(new WaitForSeconds(10.0f)); LineController.MaxLine--; InkAmout.increase_Gauge(LineLength * 0.1f); Destroy(gameObject); }
// Update is called once per frame void Update() { if (HP <= 0) { InkAmout.increase_Gauge(0.1f); Destroy(gameObject); } }
// Update is called once per frame void Update() { if (DeleyTime < 0) { Destroy(gameObject); InkAmout.increase_Gauge(HP); } DeleyTime -= Time.deltaTime; }
private void FixedUpdate() { if (HP <= 0) { Destroy(gameObject); LineController.MaxLine--; InkAmout.increase_Gauge(LineLength * 0.1f); } }
IEnumerator obj_destroy() { while (HP > 0) { yield return(new WaitForSeconds(1.0f)); HP -= 0.2f; } InkAmout.increase_Gauge(0.1f); Destroy(gameObject); }
void Update() { InkAmout.increase_Gauge(Time.deltaTime / 5); DrawLine(); }
private void FixedUpdate() { InkAmout.increase_Gauge(Time.deltaTime * 0.02f); }