slow mo in combos
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Beyond
|
||||
|
||||
public UnityEvent<float> m_OnTimeScaleChanged;
|
||||
|
||||
private float m_startingFixedDelta;
|
||||
private float m_startingFixedDelta = 0.02f;
|
||||
private float m_currentTimeScale = 1f;
|
||||
|
||||
public void SetTimeScale(float s)
|
||||
@@ -32,7 +32,7 @@ namespace Beyond
|
||||
StopAllCoroutines();
|
||||
SetTimeScale(1f);
|
||||
}
|
||||
|
||||
[Sirenix.OdinInspector.Button]
|
||||
public void SetTimeScaleForRealTimeSec(float s, float seconds, bool forceStop = false)
|
||||
{
|
||||
if (forceStop)
|
||||
@@ -58,19 +58,8 @@ namespace Beyond
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
m_startingFixedDelta = Time.fixedDeltaTime;
|
||||
//m_startingFixedDelta = Time.fixedDeltaTime;
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user