예제 #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Water") && _initialSwim == true)
     {
         _stopActions = true;
         _anim.Swim();
         StartCoroutine(StartSwimRoutine());
     }
     if (other.CompareTag("EndSceneTrigger"))
     {
         _scene.EndScene();
     }
     if (other.CompareTag("RageCollectible"))
     {
         rageTutorialCollect += 1;
     }
     if (other.CompareTag("Floor") && !_gameStart && !_waterSceneActive)
     {
         PlayAudio(audioStorage._landingSound, .3f);
     }
     if (other.CompareTag("Floor") && _gameStart)
     {
         _gameStart = false;
     }
 }