public void _KillVatnikEnemy(VatnikEnemy _enemy) { GameObject _clone = Instantiate(_enemy.deathParticles, _enemy.transform.position, Quaternion.identity) as GameObject; Destroy(_clone, 5f); // cameraShake.Shake(_enemy.shakeAmt, _enemy.shakeLength); Destroy(_enemy.gameObject); }
public static void KillVatnikEnemy(VatnikEnemy enemy) { gm._KillVatnikEnemy(enemy); gm.StartCoroutine(gm._RespawnVatnikEnemy()); }