/// <summary>
 ///
 /// </summary>
 protected override void Update()
 {
     if (btnReset.GetAnyDown())
     {
         for (int i = 0, imax = mapSettings.Length; i < imax; ++i)
         {
             mapSettings[i].ResetInput();
         }
     }
 }
        /// <summary>
        ///
        /// </summary>
        protected virtual void Update()
        {
            #region Reset

            if (canReset)
            {
                if (keyReset.GetAnyDown())
                {
                    for (int i = 0, imax = resetables.Count; i < imax; ++i)
                    {
                        resetables[i].ResetInput();
                    }
                }
            }

            #endregion Reset
        }
Beispiel #3
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void Update()
    {
        if (btnReset.GetAnyDown())
        {
#if OVR_SDK
            OVRManager.display.RecenterPose();
#elif CARDBOARD_SDK
            Cardboard.SDK.Recenter();
#elif UVR_SDK
            InputTracking.Recenter();
#endif
            if (onRecenter != null)
            {
                onRecenter.Invoke();
            }
        }
    }