Files
BITFALL/Assets/Plugins/FImpossible Creations/Plugins - Level Design/PGG/Demos - PGG/Demos Assets/Scripts/SimpleAttachCamera.cs

13 lines
254 B
C#
Raw Normal View History

2023-11-30 00:23:23 +08:00
using UnityEngine;
public class SimpleAttachCamera : MonoBehaviour
{
public Transform AttachTo;
public Vector3 Offset;
void LateUpdate()
{
transform.position = AttachTo.position + AttachTo.TransformDirection(Offset);
}
}