No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MouseUpdate.cs 452B

1234567891011121314151617181920
  1. using UnityEngine;
  2. public class MouseUpdate : MonoBehaviour
  3. {
  4. FakeBaseInput m_FakeBaseInput;
  5. void Awake()
  6. {
  7. m_FakeBaseInput = GetComponent<FakeBaseInput>();
  8. }
  9. void Update()
  10. {
  11. Debug.Assert(m_FakeBaseInput, "FakeBaseInput component has not been added to the EventSystem");
  12. // Update mouse position
  13. m_FakeBaseInput.MousePosition.x += 10f;
  14. m_FakeBaseInput.MousePosition.y += 10f;
  15. }
  16. }