コード例 #1
0
        private void Awake()
        {
            if (!Application.isEditor)
            {
                Destroy(gameObject);
                return;
            }

            manualController = GetComponent <CustomInputControl>();

            currentButtonStates = new ButtonStates();
            currentlyVisible    = false;
            visibilityChanged   = false;
            controllerId        = (uint)Random.value;
        }
コード例 #2
0
        private void Awake()
        {
            if (!Application.isEditor)
            {
                Destroy(gameObject);
                return;
            }

            manualController = GetComponent <CustomInputControl>();

            currentButtonStates = new ButtonStates();
            currentlyVisible    = false;
            visibilityChanged   = false;
            controllerId        = (uint)Random.value;

            InteractionInputSource inputSource = FindObjectOfType <InteractionInputSource>();

            if (inputSource != null)
            {
                isNavigatorUsingRails = inputSource.UseRailsNavigation;
            }
        }