16 lines
354 B
C#
16 lines
354 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using Cysharp.Threading.Tasks;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class UnityCommands
|
||
|
{
|
||
|
[BITCommand]
|
||
|
public static async void TimeScale(float scale)
|
||
|
{
|
||
|
await UniTask.SwitchToMainThread();
|
||
|
Time.timeScale = scale;
|
||
|
}
|
||
|
}
|
||
|
}
|