18 lines
321 B
C#
18 lines
321 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
[ExecuteInEditMode]
|
|
public class Billiboard : MonoBehaviour {
|
|
|
|
public Camera RenderCamera;
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
this.transform.forward = RenderCamera.transform.forward;
|
|
}
|
|
}
|