暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }