11 lines
205 B
C#
11 lines
205 B
C#
![]() |
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class SlowmoToggler : MonoBehaviour {
|
|||
|
|
|||
|
public void Slowmo (bool slowmo) {
|
|||
|
Time.timeScale = slowmo?0.25f:1;
|
|||
|
}
|
|||
|
}
|