CD-ROOM/Assets/Scripts/Dungeon/LookAtCamOnStart.cs
Gerard Gascón 341a877b4a init
2025-04-24 17:37:25 +02:00

12 lines
301 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LookAtCamOnStart : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward);
}
}