18 lines
397 B
C#
18 lines
397 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
public class BillBoardCanvas : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
camera = Camera.main;
|
|
}
|
|
private void Update()
|
|
{
|
|
transform.LookAt(transform.position + camera.transform.rotation * Vector3.forward, camera.transform.rotation * Vector3.up);
|
|
}
|
|
private Camera camera;
|
|
}
|