Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class SpawnCheck : MonoBehaviour
- {
- public bool spawnRoom;
- void OnTriggerEnter2D(Collider2D other) {
- if (other.gameObject.tag == "mapSpawn") {
- spawnRoom = true;
- }
- }
- }
Add Comment
Please, Sign In to add comment