// Start is called before the first frame update
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.gameObject.layer == 8)
     {
         CamDictionary.ChangeToCameraIndex(changeToCamera);
     }
 }
Exemple #2
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.gameObject.layer == 8)
     {
         CamDictionary.ChangeToCameraIndex(1);
         ToggleTreeInner(false);
     }
 }
Exemple #3
0
 private void OnTriggerStay2D(Collider2D collision)
 {
     if (collision.gameObject.layer == 8)
     {
         CamDictionary.ChangeToCameraIndex(2);
         ToggleTreeInner(true);
     }
 }