//public ClickParticles enemyParticles; public override void Die() { base.Die(); Debug.Log("the enemy is dead"); gameObject.GetComponent <Renderer>().material.color = friendColor; destroy.DestroyThis(); // enemyParticles.ghostPlasm.emissionRate = 0f; //Instantiate(coin); }