- Max Particle significantly reduced - preload ability assets & most shaders - fix coroutine error on channeled abilities - billboard random flickers fixed - spin to win animation and rotation sync fixed
22 lines
451 B
C#
22 lines
451 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;
|
|
}*/
|
|
private void LateUpdate()
|
|
{
|
|
if (Camera.main == null) return;
|
|
|
|
this.transform.forward = Camera.main.transform.forward;
|
|
}
|
|
}
|