private void Wipe() { multiplyChecker.exploders.Clear(); foreach (var enemy in FindObjectsOfType <Exploder>()) { Destroy(enemy.gameObject); } multiplyChecker.TestExploders(); }
private void Wipe() { CinemachineShake.instance.ShakeCamera(0.5f * multiplyChecker.exploders.Count, 0.1f); ScoreText.current.ChangeScore(true, multiplyChecker.exploders.Count); multiplyChecker.exploders.Clear(); foreach (var enemy in FindObjectsOfType <Exploder>()) { Instantiate(blood, enemy.transform.position, enemy.transform.rotation); enemy.Shoot(); Destroy(enemy.gameObject); } multiplyChecker.TestExploders(); }
private void Start() { multiplyChecker = MultiplyChecker.current; multiplyChecker.exploders.Add(this); multiplyChecker.TestExploders(); }