完善VR适配
This commit is contained in:
parent
0332229981
commit
da52d47a20
@ -132,11 +132,11 @@ namespace QFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if VR
|
public virtual void Update()
|
||||||
private void Update()
|
|
||||||
{
|
{
|
||||||
|
#if VR
|
||||||
transform.localEulerAngles = Vector3.zero;
|
transform.localEulerAngles = Vector3.zero;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@ -45,8 +45,9 @@ namespace QFramework.Example
|
|||||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
public override void Update()
|
||||||
{
|
{
|
||||||
|
base.Update();
|
||||||
if (isRun)
|
if (isRun)
|
||||||
{
|
{
|
||||||
object[] objects = new object[mData.values.Count];
|
object[] objects = new object[mData.values.Count];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user