16 lines
299 B
C#
16 lines
299 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Billboard : MonoBehaviour
|
|
{
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Camera.main == null) return;
|
|
|
|
this.transform.forward = Camera.main.transform.forward;
|
|
}
|
|
}
|