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); }
void Awake() { FinchVR.SetCamera(Camera != null ? Camera : UnityEngine.Camera.main.transform); FinchSettings.InitPlayerSettings(); FinchSettings.InitSceneSettings(HeadUpdateType, ControllersCount, BodyRotationMode, RecenterMode); }