first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user