You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
464 B
21 lines
464 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
#endif
|
|
|
|
namespace UltraCombos
|
|
{
|
|
[ExecuteAlways]
|
|
public class ForceUpdater : MonoBehaviour
|
|
{
|
|
#if UNITY_EDITOR
|
|
private static void QueueUpdate() => EditorApplication.QueuePlayerLoopUpdate();
|
|
|
|
private void OnEnable() => EditorApplication.update += QueueUpdate;
|
|
|
|
private void OnDisable() => EditorApplication.update -= QueueUpdate;
|
|
#endif
|
|
}
|
|
}
|
|
|