Day Night cyrcle script

This commit is contained in:
JonatanRek
2020-02-01 13:30:49 +01:00
parent be883b09c2
commit 847b291d8d
10 changed files with 393 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DayManager : MonoBehaviour
{
public int sunSpeed = 30;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
this.gameObject.transform.Rotate(new Vector3(sunSpeed * Time.deltaTime, 0, 0));
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 19bf5b78376a3b94882c1e26afe7c633
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: