Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Appear : MonoBehaviour
- {
- GameObject Sphere;
- private void Start()
- {
- }
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.Keypad1))
- {
- Instantiate(Sphere, transform.position, transform.rotation);
- }
- if (Input.GetKeyDown(KeyCode.Keypad2))
- {
- Debug.Log("2");
- }
- if (Input.GetKeyDown(KeyCode.Keypad3))
- {
- Debug.Log("3");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement