Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System;
- using System.Threading;
- using System.Collections;
- public class torchControl : MonoBehaviour {
- public bool torchOn;
- // Use this for initialization
- void Start () {
- torchOn = false;
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetButton ("L"))
- animation.Play("get_torch_up");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement