Files
BITFALL/Assets/Plugins/FImpossible Creations/Plugins - Level Design/PGG/Demos - PGG/Demos Assets/Scripts/SimpleAttachCamera.cs
CortexCore ba342d6627 1
2023-11-30 00:23:23 +08:00

13 lines
254 B
C#

using UnityEngine;
public class SimpleAttachCamera : MonoBehaviour
{
public Transform AttachTo;
public Vector3 Offset;
void LateUpdate()
{
transform.position = AttachTo.position + AttachTo.TransformDirection(Offset);
}
}