// Update is called once per frame void Update() { if (hit) { t += Time.deltaTime; if (t > 2) { hit = false; owner.Active(); t = 0; } } }