protected void dead() { if (health <= 0) { KillEnemyCount.Kill_count(Enemy_ID); GameObject.Instantiate(Effect_explode, gameObject.transform.position, Quaternion.identity); Destroy(gameObject); } }
void isDead() { if (health <= 0) { explosion(); gameObject.transform.Translate(Vector3.down * 1f * Time.deltaTime); if (gameObject.transform.position.y < 0) { for (int i = 0; i < 500; i++) { explosion(); } KillEnemyCount.Kill_count(Enemy_ID); Destroy(gameObject); } } }
public void Back2Start() { KillEnemyCount.init_ALL(); SceneManager.LoadScene(0); }
public void Restart() { KillEnemyCount.init_ALL(); SceneManager.LoadScene(1); }