12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using UnityEngine;
- namespace ET.Client
- {
- [FriendOf(typeof(OperaComponent))]
- public static class OperaComponentSystem
- {
- [ObjectSystem]
- public class OperaComponentAwakeSystem : AwakeSystem<OperaComponent>
- {
- protected override void Awake(OperaComponent self)
- {
- self.mapMask = LayerMask.GetMask("Map");
- }
- }
- [ObjectSystem]
- public class OperaComponentUpdateSystem : UpdateSystem<OperaComponent>
- {
- protected override void Update(OperaComponent self)
- {
-
-
- if (Input.GetKeyDown(KeyCode.R))
- {
- CodeLoader.Instance.LoadHotfix();
- EventSystem.Instance.Load();
- Log.Debug("hot reload success!");
- }
- if (Input.GetKeyDown(KeyCode.T))
- {
-
-
- }
- }
- }
- }
- }
|