wip : liminal portal and transition between theater and shrine
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
public class Audio_MoveRoomPosition : MonoBehaviour
|
||||
{
|
||||
public GameObject targetObject;
|
||||
public string playerTag = "Player";
|
||||
public Vector3 targetLocalPosition;
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (!other.CompareTag(playerTag)) return;
|
||||
if (targetObject == null) return;
|
||||
|
||||
targetObject.transform.localPosition = targetLocalPosition;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91cc4e26ea2e2184e8b6daded59d727a
|
||||
Reference in New Issue
Block a user