| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using CommandLine;
- using UnityEngine;
- namespace ET
- {
- public class Init: MonoBehaviour
- {
- private void Start()
- {
- DontDestroyOnLoad(gameObject);
- World.Instance.AddSingleton<Logger>().Log = new UnityLogger();
-
- Entry.Start();
- }
- private void Update()
- {
- TimeInfo.Instance.Update();
- FiberManager.Instance.Update();
- }
- private void LateUpdate()
- {
- FiberManager.Instance.LateUpdate();
- }
- private void OnApplicationQuit()
- {
- World.Instance.Dispose();
- }
- }
-
-
- }
|