| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System.Threading;
- using UnityEngine;
- namespace ET
- {
- public class Init: MonoBehaviour
- {
- private CodeLoader codeLoader;
-
- private void Awake()
- {
- SynchronizationContext.SetSynchronizationContext(ThreadSynchronizationContext.Instance);
-
- DontDestroyOnLoad(gameObject);
- Log.ILog = new UnityLogger();
- Options.Instance = new Options();
- this.codeLoader = CodeLoader.Instance;
- }
- private void Start()
- {
- this.codeLoader.Start();
- }
- private void Update()
- {
- this.codeLoader.Update();
- }
- private void LateUpdate()
- {
- this.codeLoader.LateUpdate();
- }
- private void OnApplicationQuit()
- {
- this.codeLoader.OnApplicationQuit();
- }
- }
- }
|