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();
 }
예제 #4
0
        IEnumerator Procedure()
        {
            yield return(new WaitForSeconds(delay));

            Projectile.Destroy();
        }