移除废弃内容
This commit is contained in:
@@ -86,8 +86,9 @@ public class SceneSettings : MonoBehaviour
|
||||
private void UpdateTimeOfDay()
|
||||
{
|
||||
var p = GameTimer.GetGameDayProgress();
|
||||
p = 0;
|
||||
// Debug.Log(p);
|
||||
EnviroManager.instance.Time.SetTimeOfDay(GameTimer.GetGameDayProgress() * 24f);
|
||||
EnviroManager.instance.Time.SetTimeOfDay(p * 24f);
|
||||
// if(AzureCoreSystem)
|
||||
// AzureCoreSystem.timeSystem.timeline = 24F * p;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using NBF;
|
||||
using NBC;
|
||||
using NBF;
|
||||
using Obi;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -27,8 +28,13 @@ public class Rope : MonoBehaviour
|
||||
public void LineLength_OnValueChanged(float length)
|
||||
{
|
||||
cursor = cursor == null ? GetComponent<ObiRopeCursor>() : cursor;
|
||||
var old = stretchScale;
|
||||
stretchScale = Mathf.Clamp(length - percentageElasticity, 0f, float.PositiveInfinity);
|
||||
|
||||
// cursor.ChangeLength(length);
|
||||
if (stretchScale != old)
|
||||
{
|
||||
Log.Info($"rope name={gameObject.name} stretchScale={stretchScale}");
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
Reference in New Issue
Block a user