mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 09:00:58 +00:00
19 lines
370 B
C#
19 lines
370 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class FaceCamera : MonoBehaviour {
|
|
Transform mainCamera;
|
|
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
mainCamera = GameObject.FindGameObjectWithTag("MainCamera").transform;
|
|
transform.rotation = mainCamera.rotation;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|