Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player") && !other.isTrigger)
     {
         _cam.ChangeMin(_cameraChangeMin);
         _cam.ChangeMax(_cameraChangeMax);
         other.transform.position += _playerChange;
         if (_needText)
         {
             StartCoroutine(placeNameCo());
         }
     }
 }