예제 #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.TryGetComponent(out Diver diver) && !IsOn)
     {
         AudioSource.clip = CheckpointActivatedClip;
         AudioSource.Play();
         MessageDisplay.ShowMessage("Checkpoint!");
         SaveManager.Checkpoint(Index);
         Activate();
     }
 }