Advertisement
Guest User

None

a guest
Apr 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class NewOTSiw : MonoBehaviour {
  5.  
  6.     public GameObject torus;
  7.  
  8.     void OnTriggerStay(Collider other)
  9.     {
  10.         if (other.CompareTag("Player") && Input.GetKeyDown(KeyCode.E))
  11.         {
  12.             torus.GetComponent("Animator");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement