private void onBeforeDead() { GameObject explosion = (GameObject)Resources.Load("Prefabs/ExplosionMobile"); explosion = Instantiate(explosion, self.transform.position, Quaternion.identity); Destroy(explosion, 2f); GenerateEnemy.DestroyEnemy(); Debug.LogWarning("Enemy.onBeforeDead is not implemented."); }