Merge branch 'main' of http://212.24.110.183:3000/IPSEITY/Unheimlich_POC
# Conflicts: # Assets/_Content/Fonts/MerchandePrintCerif/AssetFont/MerchandePrintSerif SDF.asset # Assets/_Content/Prefabs/OctoPlayerFP.prefab # Assets/_Content/Scenes/BodiesInWater.unity
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