Exemple #1
0
 public void OnDeath()
 {
     Destroy(GetComponent <Animator>());
     SpawnController.Create();
     Destroy(GetComponent <Enemy>());
     //Destroy(gameObject);
 }
Exemple #2
0
        public void Destroy()
        {
            SpawnController.Create();

            //Spawner.Spawn();
            Destroy(gameObject);
        }
Exemple #3
0
 public void onDeath()
 {
     SpawnController.Create();
     Destroy(gameObject);
 }