Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace UnityStandardAssets.CinematicEffects
- {
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityStandardAssets.CinematicEffects;
- public class EnterHouse : MonoBehaviour
- {
- public bool isInHouse = false;
- private void OnTriggerEnter(Collider collider)
- {
- if (collider.gameObject.tag == "House")
- isInHouse = true;
- }
- private void OnTriggerExit(Collider collider)
- {
- if (collider.gameObject.tag == "House")
- isInHouse = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement