333GameStudio

Switch2

Dec 17th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var point1 : GameObject;
  3. var point2 : GameObject;
  4.  
  5. function Update () {
  6. if (Input.GetKeyDown("j")){
  7.  
  8. point1.SetActive(true);
  9. point2.SetActive(false);
  10.  
  11. }
  12. }
  13. function FixedUpdate(){
  14. if (Input.GetKeyDown("l")){
  15.  
  16. point1.SetActive(false);
  17. point2.SetActive(true);
  18.  
  19. }
  20. }
Add Comment
Please, Sign In to add comment