private void CheckIfDead() { if (currentHealth <= 0) { if (drops.Length >= 1) { int drop = Random.Range(0, drops.Length - 1); Instantiate(drops[drop]); } gm.AddPoints(pointsWorth); this.gameObject.transform.position = new Vector3(0, 0, 0); currentHealth = hitpoints; Debug.Log(gameObject.transform.name + " died!"); //this.gameObject.SetActive(false); Destroy(this.gameObject); } }