Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. void Update()
  2. {
  3. if (Input.GetKeyDown(KeyCode.R))
  4. {
  5. GetComponent<Renderer> ().material.color = Color.red;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement