void Update() { if (thisBuff && thisBuff.timer > 0) { thisBuff.timer -= Time.deltaTime; buffTimer.text = "" + (int)thisBuff.timer; } else { ThisManager.Debuff(thisBuff); Destroy(this.gameObject); } }