Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.R))
- {
- GetComponent<Renderer> ().material.color = Color.red;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement