private void Awake()
        {
#if !UNITY_EDITOR
            Destroy(this);
#else
            editorInputControl = GetComponent <EditorInputControl>();
            for (uint i = 0; i < editorHandsData.Length; i++)
            {
                editorHandsData[i] = new EditorHandData(i);
            }
#endif
        }
Example #2
0
        private void Awake()
        {
#if !UNITY_EDITOR
            Destroy(gameObject);
#else
            manualController = GetComponent <EditorInputControl>();

            CurrentButtonStates = new ButtonStates();
            currentlyVisible    = false;
            visibilityChanged   = false;
            controllerId        = (uint)Random.value;
#endif
        }
        private void Awake()
        {
            if (!Application.isEditor)
            {
                Destroy(gameObject);
                return;
            }

            manualController = GetComponent <EditorInputControl>();

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