Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Appear : MonoBehaviour
  5. {
  6. GameObject Sphere;
  7.  
  8. private void Start()
  9. {
  10.  
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. if (Input.GetKeyDown(KeyCode.Keypad1))
  16. {
  17. Instantiate(Sphere, transform.position, transform.rotation);
  18. }
  19. if (Input.GetKeyDown(KeyCode.Keypad2))
  20. {
  21. Debug.Log("2");
  22. }
  23. if (Input.GetKeyDown(KeyCode.Keypad3))
  24. {
  25. Debug.Log("3");
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement