Example #1
0
        void Start()
        {
            keyboardStatus = gameObject.GetComponent <KeyboardStatus>();
            int layerNumber = gameObject.layer;

            layer = 1 << layerNumber;
        }
        //public Text mytext;
        //public InputField input;

        void Start()
        {
            keyboardStatus = gameObject.GetComponent <KeyboardStatus>();
            int layerNumber = gameObject.layer;

            layer = 1 << layerNumber;

            //input = mytext.GetComponent<InputField> ();
        }
 public override void OnInspectorGUI()
 {
     keyboardStatus = target as KeyboardStatus;
     keyboardStatus.maxOutputLength = EditorGUILayout.IntField(OUTPUT_LENGTH, keyboardStatus.maxOutputLength);
     DrawTargetGameObjectFields();
     DrawPopupList();
     keyboardStatus.isReflectionPossible = IsReflectionPossible();
     HandleValuesChanges();
 }
        private void Awake()
        {
            keyboardStatus = target as KeyboardStatus;
            ClearReflectionData();

            if (keyboardStatus.targetGameObject != null)
            {
                GetComponentsName();
            }
        }
Example #5
0
        /// <summary>
        /// Sets values for other necessary components
        /// </summary>
        private void SetComponents()
        {
            KeyboardRaycaster rayCaster = GetComponent <KeyboardRaycaster>();

            rayCaster.SetRaycastingTransform(RaycastingSource);
            rayCaster.SetClickButton(ClickHandle);
            rayCaster.SetTarget(gameObject);
            KeyboardStatus status = GetComponent <KeyboardStatus>();

            status.SetKeys(keys);
        }
Example #6
0
        void Start()
        {
            keyboardStatus = gameObject.GetComponent <KeyboardStatus>();
            int layerNumber = gameObject.layer;

            layer = 1 << layerNumber;
            Debug.Log("start");
            Scene scene = SceneManager.GetActiveScene();

            sceneName = scene.name;
            Debug.Log("Active scene is '" + sceneName + "'.");
        }