Created Lightning Gun effect (Uses LineRenderer, very slow) Created GPU Lightning renderer (very fast, still needs integration)
14 lines
202 B
C#
14 lines
202 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class AutoRotate : MonoBehaviour {
|
|
|
|
public Vector3 rotSpeed;
|
|
|
|
|
|
void Update () {
|
|
|
|
transform.Rotate(rotSpeed * Time.deltaTime);
|
|
|
|
}
|
|
}
|