// Update is called once per frame void FixedUpdate() { coolD -= 1; coolDA -= 1; if (HP <= 0) { if (pi.QuestTaken == 1) { kq.QuestCompl(); } database.Gold_count += 5; this.gameObject.SetActive(false); } }