void OnCollisionEnter(Collision collide) { if (!collide.gameObject.name.Contains("Ship") && !collide.gameObject.name.Contains("EnemyBullet")) { Destroy(obj); ws.AddScore(); ws.AddKill(); var temp = Instantiate(explode, obj.gameObject.transform.position, Quaternion.identity); Destroy(temp, 0.6f); } }