Advertisement
LukeWhite_Work

Key inventory

Dec 15th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class KeyInventory : MonoBehaviour {
  6.  
  7. public List<string> Keys;
  8.  
  9.  
  10.  
  11.  
  12. public void DoorTargeted(GameObject TargetDoor)
  13. {
  14. TargetDoor.GetComponent<Door>().DoesThePlayerHaveTheRightKeyOrNot();
  15. }
  16.  
  17.  
  18.  
  19.  
  20. // Use this for initialization
  21. void Start () {
  22.  
  23. }
  24.  
  25. // Update is called once per frame
  26. void Update () {
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement