Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var Cube : GameObject;
- function Start () {
- Cube.gameObject.SetActive(false);
- }
- function Update () {
- if(Input.GetMouseButtonDown(1))
- Cube.gameObject.SetActive(true);
- var ray : Ray = camera.ScreenPointToRay (Vector3(200,200,0));
- }
Advertisement
Add Comment
Please, Sign In to add comment