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