Advertisement
Guest User

Untitled

a guest
Dec 20th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. namespace UnityStandardAssets.CinematicEffects
  2. {
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. using UnityStandardAssets.CinematicEffects;
  7.  
  8. public class EnterHouse : MonoBehaviour
  9. {
  10. public bool isInHouse = false;
  11.  
  12. private void OnTriggerEnter(Collider collider)
  13. {
  14. if (collider.gameObject.tag == "House")
  15. isInHouse = true;
  16. }
  17.  
  18. private void OnTriggerExit(Collider collider)
  19. {
  20. if (collider.gameObject.tag == "House")
  21. isInHouse = false;
  22. }
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement