18 lines
383 B
C#
18 lines
383 B
C#
using UnityEngine;
|
|
|
|
namespace SomniumSpace.Worlds.TheCloud
|
|
{
|
|
public class LookAtCamera : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
Camera camera = Camera.main;
|
|
if (camera != null)
|
|
{
|
|
transform.LookAt(camera.transform.position, Vector3.up);
|
|
transform.Rotate(0, 180, 0);
|
|
}
|
|
}
|
|
}
|
|
}
|