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