예제 #1
0
 private void Wipe()
 {
     multiplyChecker.exploders.Clear();
     foreach (var enemy in FindObjectsOfType <Exploder>())
     {
         Destroy(enemy.gameObject);
     }
     multiplyChecker.TestExploders();
 }
예제 #2
0
 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();
 }
예제 #3
0
 private void Start()
 {
     multiplyChecker = MultiplyChecker.current;
     multiplyChecker.exploders.Add(this);
     multiplyChecker.TestExploders();
 }