Created
April 9, 2018 01:59
-
-
Save sydney4529/a72c10e8d6fd74ba05dff11544e09c75 to your computer and use it in GitHub Desktop.
Script for the rotating sun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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