// Update is called once per frame void Update() { if (Input.GetKeyUp(KeyCode.A)) { Debug.Log("bind camera input event"); CameraMgr.GetIns().BindInputEvent(); } if (null == PCInputMgr.GetIns()) { Debug.Log("pcinput = null"); return; } if (null == TouchMgr.GetIns()) { Debug.Log("touch input = null"); return; } //Debug.Log("update"); PCInputMgr.GetIns().tUpdate(); TouchMgr.GetIns().tUpdate(); }
public void UnBindInputEvent() { switch (GameConfig.InputCtrlType) { case GameConfig.InputCtrlTypeEnum.mobile: TouchMgr.GetIns().TouchMoveEvent -= ProcessMoveEvent; TouchMgr.GetIns().TouchScaleEvent -= ProcessScaleEvent; break; case GameConfig.InputCtrlTypeEnum.pc: PCInputMgr.GetIns().MouseMoveEvent -= ProcessMoveEvent; PCInputMgr.GetIns().MouseScrollWheelEvent -= ProcessScaleEvent; break; } }