public void AfterTest() { _virtualMouse.TestDestroy(); _image = null; _virtualMouse = null; Cursor.visible = _priorCursorSetting; }
public void BeforeTest() { _priorCursorSetting = Cursor.visible; _virtualMouse = new GameObject().AddComponent <TestVirtualMouseComponent>(); _image = new GameObject().AddComponent <Image>(); _virtualMouse.MouseGraphic = _image; _virtualMouse.TestAwake(); }