You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
452 B
C#
21 lines
452 B
C#
using UnityEngine;
|
|
|
|
public class MouseUpdate : MonoBehaviour
|
|
{
|
|
FakeBaseInput m_FakeBaseInput;
|
|
|
|
void Awake()
|
|
{
|
|
m_FakeBaseInput = GetComponent<FakeBaseInput>();
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
Debug.Assert(m_FakeBaseInput, "FakeBaseInput component has not been added to the EventSystem");
|
|
|
|
// Update mouse position
|
|
m_FakeBaseInput.MousePosition.x += 10f;
|
|
m_FakeBaseInput.MousePosition.y += 10f;
|
|
}
|
|
}
|