PlayerLocationRoomEntrance.cs 323 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class PlayerLocationRoomEntrance : MonoBehaviour {
  5. public PlayerLocation PlayerLocation;
  6. public PlayerLocation.Room Room;
  7. private void OnTriggerEnter(Collider other)
  8. {
  9. PlayerLocation.CurrentLocation = Room;
  10. }
  11. }