コード例 #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (isActivated)
     {
         if (collision.gameObject.layer == playerLayer)
         {
             isActivated = false;
             _objectives.EndPhase();
             screen.SetActive(false);
         }
     }
 }