Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.RightArrow))
- {
- gameObject.SetActive(false);
- NextSlide.PreviousSlide = this;
- NextSlide.gameObject.SetActive(true);
- }
- else if (Input.GetKeyDown(KeyCode.LeftArrow) && PreviousSlide != null)
- {
- gameObject.SetActive(false);
- PreviousSlide.gameObject.SetActive(true);
- }
- }
Add Comment
Please, Sign In to add comment