Tanoda
RUEInvoker.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
4using UnityEngine;
6
7public class RUEInvoker : MonoBehaviour
8{
9
10#if DEBUG // || true
11 public static RuntimeUnityEditorCore Instance { get; private set; }
12
13 // Start is called before the first frame update
14 void Start()
15 {
16 if (Instance == null)
17 Instance = new RuntimeUnityEditorCore(this, new Logger5(), "") {ShowHotkey = KeyCode.F8};
18 }
19
20 // Update is called once per frame
21 private void OnGUI()
22 {
23 Instance?.OnGUI();
24 }
25
26 void Update()
27 {
28 Instance?.Update();
29 }
30
31 private void LateUpdate()
32 {
33 Instance?.LateUpdate();
34 }
35
36#endif
37
38 private sealed class Logger5 : ILoggerWrapper
39 {
40 public void Log(LogLevel logLogLevel, object content)
41 {
42 Debug.Log(content);
43 }
44 }
45}
UnityEngine.Debug Debug
Definition: TanodaServer.cs:19
void Log(LogLevel logLogLevel, object content)