Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 68 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top