Пример #1
0
        protected override void OnGameLoad(GameSaveLoadEventArgs args)
        {
            if (VRPlugin.debugLog)
            {
                VRPlugin.Logger.LogInfo($" OnGameLoad for ControllerColliders");
            }

            //Set up controller colliders when main game starts
            VRControllerColliderHelper.TriggerHelperCoroutine();
        }
 internal void EnableControllerColliders_SettingsChanged(object sender, System.EventArgs e)
 {
     if (!EnableControllerColliders.Value)
     {
         //Force recalculate all verts.  With balloon active it will automatically calaulcate the correct new boundaries
         VRControllerColliderHelper.StopHelperCoroutine();
     }
     else
     {
         VRControllerColliderHelper.TriggerHelperCoroutine();
     }
 }