void attack() { if (player != null) { player.AddHp(damage); } player = null; gameObject.SetActive(false); }