Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script for the rotating sun
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightRotate : MonoBehaviour {
public float spinX = 0;
public float spinY = 0;
public float spinZ = 0;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(spinX,spinY,spinZ);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.