using UnityEngine; namespace ET.Client { [FriendOf(typeof(OperaComponent))] public static class OperaComponentSystem { [ObjectSystem] public class OperaComponentAwakeSystem : AwakeSystem { protected override void Awake(OperaComponent self) { self.mapMask = LayerMask.GetMask("Map"); } } [ObjectSystem] public class OperaComponentUpdateSystem : UpdateSystem { protected override void Update(OperaComponent self) { /*if (Input.GetMouseButtonDown(0)) { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit, 1000, self.mapMask)) { C2M_PathfindingResult c2MPathfindingResult = new C2M_PathfindingResult(); c2MPathfindingResult.Position = hit.point; self.ClientScene().GetComponent().Session.Send(c2MPathfindingResult); } }*/ if (Input.GetKeyDown(KeyCode.R)) { CodeLoader.Instance.LoadHotfix(); EventSystem.Instance.Load(); Log.Debug("hot reload success!"); } if (Input.GetKeyDown(KeyCode.T)) { //C2M_TransferMap c2MTransferMap = new C2M_TransferMap(); //self.ClientScene().GetComponent().Session.Call(c2MTransferMap).Coroutine(); } } } } }