change: more alterations to movement, settingvalues, valuegroup, etc.
This commit is contained in:
@@ -4,26 +4,6 @@ using Sirenix.OdinInspector;
|
||||
using Unity.Cinemachine;
|
||||
using UnityEngine;
|
||||
|
||||
public struct SettingValue<T>{
|
||||
public T value;
|
||||
public float smoothing; // Smoothing changes how fast value is changed.
|
||||
public float easing; // Easing changes how fast smoothing is changed, when given a new value.
|
||||
|
||||
public float currentSmoothing; // Actively eased and accessed value
|
||||
public float currentValue; // Actively smoothed and accessed value
|
||||
|
||||
public T refVel; // For use with SmoothDamp
|
||||
|
||||
public SettingValue(float defaultEasing = 2f, float defaultSmoothing = 1f){
|
||||
easing = defaultEasing;
|
||||
value = default;
|
||||
smoothing = defaultSmoothing;
|
||||
currentSmoothing = 0;
|
||||
currentValue = 0;
|
||||
refVel = default;
|
||||
}
|
||||
}
|
||||
|
||||
public struct CameraSettingData : ICloneable{
|
||||
public SettingValue<float> mainFieldOfView;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user