init
This commit is contained in:
commit
341a877b4a
2338 changed files with 1346408 additions and 0 deletions
12
Assets/Scripts/Dungeon/LookAtCamOnStart.cs
Normal file
12
Assets/Scripts/Dungeon/LookAtCamOnStart.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue