public void OnDeath() { Destroy(GetComponent <Animator>()); SpawnController.Create(); Destroy(GetComponent <Enemy>()); //Destroy(gameObject); }
public void Destroy() { SpawnController.Create(); //Spawner.Spawn(); Destroy(gameObject); }
public void onDeath() { SpawnController.Create(); Destroy(gameObject); }