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