protected override void Awake() { if (!GyroCamera) { GyroCamera = GetComponentInChildren <CameraGyroscope>(); } base.Awake(); Deactivate(); }
public override void Initialize() { // Set to true by default, let subclasses enable/disable. UsingTracking = true; m_needsSetAnchor = true; m_objStates = new Dictionary<LocationARWorldObject, TrackedWorldObjectState>(); if (!CameraGyro) { CameraGyro = WorldCamera.GetComponent<CameraGyroscope>(); } base.Initialize(); EnableTracking(); }
// Use this for initialization void Start() { m_gyro = GameObject.FindObjectOfType <CameraGyroscope>(); //m_gyro.SetHeading((float)Platform.Instance.NoiseReducedCompass.TrueHeading); }