Skip to content

Instantly share code, notes, and snippets.

@sydney4529
Created April 9, 2018 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sydney4529/a72c10e8d6fd74ba05dff11544e09c75 to your computer and use it in GitHub Desktop.
Save sydney4529/a72c10e8d6fd74ba05dff11544e09c75 to your computer and use it in GitHub Desktop.
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