// Use this for initialization
    void Awake()
    {
        Instance    = this;
        InitalInput = true;

        RepeatFirstName     = PlayerPrefs.GetString("First Name");
        RepeatPreferredName = PlayerPrefs.GetString("Middle Name");
        RepeatLastName      = PlayerPrefs.GetString("Last Name");
    }
Exemple #2
0
    public void saveAnnotation()
    {
        if (GameObject.Find("Annotation_window") != null)
        {
            note = GameObject.Find("MessageInputField").GetComponent <KeyboardInputField>();
            HoverScript.activeObj.GetComponent <HoverScript>().annotation       = note.text;
            HoverScript.activeObj.GetComponent <HoverScript>().gameObjNote.text = note.text;
            note.text = "";
        }
        else
        {
            Debug.Log("No GameObject with the name 'Text' attached to the gameObject");
        }

        GameObject.Find("Holograms").GetComponent <PanelScript>().keyboard.Close();
    }
    // Use this for initialization
    void Start()
    {
        //isActive = false;

        title        = transform.Find("WindowCanvas/Background/Title").GetComponent <Text>();
        description  = transform.Find("WindowCanvas/Background/Description").GetComponent <Text>();
        inputText    = transform.Find("WindowCanvas/Background/MessageInputField/InputFieldText").GetComponent <Text>();
        kbInputField = GameObject.Find("WindowCanvas/Background/MessageInputField").GetComponent <KeyboardInputField>();

        if (title != null)
        {
            title.text = "Add a new tag";
        }

        if (description != null)
        {
            description.text = "Write the name of the new tag or close this window.";
        }

        GameObject panelWithInputField = transform.parent.gameObject;

        panelWithInputField.SetActive(false);
    }
 protected virtual void Awake()
 {
     KeyboardField = (KeyboardInputField)target;
 }
 // Use this for initialization
 void Start()
 {
     buttonScript = GetComponent <Button>();
     textInput    = GameObject.FindGameObjectWithTag("NameInput").GetComponent <KeyboardInputField>();
 }
 // Use this for initialization
 void Start()
 {
     inputField = GetComponent <KeyboardInputField>();
 }