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