Пример #1
0
        public void Initialize(Window window)
        {
            inputField = transform.Find("Input Field").GetComponent<CommandInputField>();
            inputField.parentWindow = window;

            lineTypeToggleButton_ = transform.Find("Line Type Toggle Button").GetComponent<Button>();
            lineTypeIcon_ = lineTypeToggleButton_.transform.Find("Line Type Icon").GetComponent<Image>();

            singleLineIcon_ = Resources.Load<Sprite>("uREPL/Images/SingleLine");
            multiLineIcon_ = Resources.Load<Sprite>("uREPL/Images/MultiLine");
        }
Пример #2
0
        public void Initialize(Window window)
        {
            inputField = transform.Find("Input Field").GetComponent <CommandInputField>();
            inputField.parentWindow = window;

            lineTypeToggleButton_ = transform.Find("Line Type Toggle Button").GetComponent <Button>();
            lineTypeIcon_         = lineTypeToggleButton_.transform.Find("Line Type Icon").GetComponent <Image>();

            singleLineIcon_ = Resources.Load <Sprite>("uREPL/Images/SingleLine");
            multiLineIcon_  = Resources.Load <Sprite>("uREPL/Images/MultiLine");
        }