Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using UnityEngine;
  2. using System;
  3. using System.Threading;
  4. using System.Collections;
  5.  
  6. public class torchControl : MonoBehaviour {
  7.  
  8. public bool torchOn;
  9.  
  10.  
  11. // Use this for initialization
  12. void Start () {
  13. torchOn = false;
  14. }
  15.  
  16. // Update is called once per frame
  17. void Update () {
  18. if (Input.GetButton ("L"))
  19. animation.Play("get_torch_up");
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement