19 lines
288 B
C#
19 lines
288 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class TimeScaleController : MonoBehaviour
|
||
|
|
{
|
||
|
|
|
||
|
|
[Range(0, 10)]
|
||
|
|
public float animSpeed = 1.0f;
|
||
|
|
|
||
|
|
|
||
|
|
#if UNITY_EDITOR
|
||
|
|
private void Update()
|
||
|
|
{
|
||
|
|
Time.timeScale = animSpeed;
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|