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