TeHArGiS10

Untitled

Jul 10th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #pragma strict
  2.  
  3. var Cube : GameObject;
  4.  
  5. function Start () {
  6. Cube.gameObject.SetActive(false);
  7. }
  8.  
  9. function Update () {
  10. if(Input.GetMouseButtonDown(1))
  11. Cube.gameObject.SetActive(true);
  12. var ray : Ray = camera.ScreenPointToRay (Vector3(200,200,0));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment