Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class roomCheck : MonoBehaviour
  6. {
  7.     public GameObject room;
  8.  
  9.     public RoomScript roomScript;
  10.     public bool[] connectionsAvailable;
  11.  
  12.     void OnTriggerEnter2D(Collider2D other) {
  13.         room = other.gameObject;
  14.         roomScript = room.GetComponent<RoomScript>();
  15.         connectionsAvailable = room.GetComponent<RoomScript>().connectionsAvailable;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement