// Token: 0x0600BE69 RID: 48745 RVA: 0x00352DE0 File Offset: 0x00350FE0 public void Update() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_Update_hotfix != null) { this.m_Update_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Vector3 position = new Vector3((float)(Screen.width / 2), (float)(Screen.height / 2), this.findingSquareDist); if (this.trackingInitialized) { this.SquareState = ARPlaneTrace.FocusState.Finding; if (Vector3.Dot(this.camera.transform.forward, Vector3.down) > 0f) { this.centerPos = this.camera.ScreenToWorldPoint(position); Vector3 lhs = this.centerPos - this.camera.transform.position; Vector3 lhs2 = Vector3.Cross(lhs, Vector3.up); Vector3 forward = Vector3.Cross(lhs2, Vector3.up); this.centerRotation = Quaternion.LookRotation(forward, Vector3.up); } } }
// Token: 0x0600BE68 RID: 48744 RVA: 0x00352D58 File Offset: 0x00350F58 public void Init(Camera camera) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitCamera_hotfix != null) { this.m_InitCamera_hotfix.call(new object[] { this, camera }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.SquareState = ARPlaneTrace.FocusState.Initializing; this.trackingInitialized = true; this.camera = camera; }