Guest User

Untitled

a guest
Dec 6th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class SpawnCheck : MonoBehaviour
  6. {
  7.  
  8.     public bool spawnRoom;
  9.     void OnTriggerEnter2D(Collider2D other) {
  10.         if (other.gameObject.tag == "mapSpawn") {
  11.             spawnRoom = true;
  12.         }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment