- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PlayerLocationRoomEntrance : MonoBehaviour {
- public PlayerLocation PlayerLocation;
- public PlayerLocation.Room Room;
- private void OnTriggerEnter(Collider other)
- {
- PlayerLocation.CurrentLocation = Room;
- }
- }
|