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"); }
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"); }