Beispiel #1
0
        private void Awake()
        {
            DontDestroyOnLoad(this);
            if (FindObjectsOfType(GetType()).Length > 1)
            {
                destroyByDuplicate = true;
                Destroy(gameObject);
            }

            FinchSettings.OnPreferredHandednessChange += OnPreferredHandednessUpdate;
            FinchSettings.InitBuildSettings(DataSource, DeviceType, PoseTrackingAlgorithm);

            if (finchProvider == null)
            {
                finchProvider = FinchProviderFactory.CreateControllerProvider();
            }

            AssignControllers(true);
        }
Beispiel #2
0
 void Awake()
 {
     FinchVR.SetCamera(Camera != null ? Camera : UnityEngine.Camera.main.transform);
     FinchSettings.InitPlayerSettings();
     FinchSettings.InitSceneSettings(HeadUpdateType, ControllersCount, BodyRotationMode, RecenterMode);
 }