void Update() { Value += Projectile.rigidbody.velocity.magnitude * Time.deltaTime; if (Value >= range) { Projectile.Destroy(); } }
void Action() { IEnumerator Procedure() { yield return(new WaitForEndOfFrame()); Projectile.Destroy(); } StartCoroutine(Procedure()); }
protected override void Process() { Projectile.Destroy(); }
IEnumerator Procedure() { yield return(new WaitForSeconds(delay)); Projectile.Destroy(); }