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