// Update is called once per frame
 void Update()
 {
     if (DamageCircle.IsOutSideCircle(gameObject.transform.position) && carrier == null)
     {
         gameObject.SetActive(false);
         unityEvent.Invoke();
     }
 }
    // Update is called once per frame
    void Update()
    {
        accumulatedTime += Time.deltaTime;
        HealthController hc = GetComponent <HealthController>();

        if (DamageCircle.IsOutSideCircle(transform.position) || isOnFire)
        {
            fire.SetActive(true);
            if (accumulatedTime > damageInterval)
            {
                accumulatedTime = 0;
                hc.Damage(10);
            }
        }
        else
        {
            fire.SetActive(false);
        }
    }