修改脚本
This commit is contained in:
@@ -86,7 +86,7 @@ public class SceneSettings : MonoBehaviour
|
||||
private void UpdateTimeOfDay()
|
||||
{
|
||||
var p = GameTimer.GetGameDayProgress();
|
||||
// p = 0;
|
||||
p = 0.5f;
|
||||
// Debug.Log(p);
|
||||
EnviroManager.instance.Time.SetTimeOfDay(p * 24f);
|
||||
// if(AzureCoreSystem)
|
||||
|
||||
23
Assets/Scripts/Demo/SetTransform.cs
Normal file
23
Assets/Scripts/Demo/SetTransform.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class SetTransform : MonoBehaviour
|
||||
{
|
||||
public Vector3 targetPos = new Vector3(0, 0, 0);
|
||||
public Vector3 targetAngles = new Vector3(0, 0, 0);
|
||||
|
||||
public void Start()
|
||||
{
|
||||
targetPos = transform.localPosition;
|
||||
targetAngles = transform.localEulerAngles;
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
transform.localPosition = targetPos;
|
||||
transform.localEulerAngles = targetAngles;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Demo/SetTransform.cs.meta
Normal file
3
Assets/Scripts/Demo/SetTransform.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a38b7c15293e4a559f5ab9110a089d4c
|
||||
timeCreated: 1774091684
|
||||
Reference in New Issue
Block a user