public Console() { invalidState = true; messages = new List <string>(); consolePanel = Assist.LoadUI(UI_PREFAB); inputField = Assist.FindComponent <InputField>(consolePanel, UI_INPUT_FIELD); textField = Assist.FindComponent <Text>(consolePanel, UI_TEXT_OUTPUT); }
public ViewControllerLogin() { panelView = Assist.LoadUI(PANEL_PREFAB_PATH); visible = false; userInputField = Assist.FindComponent <InputField>(panelView, "user_input"); passwordInputField = Assist.FindComponent <InputField>(panelView, "password_input"); loginButton = Assist.FindComponent <Button>(panelView, "login_button"); loginButton.onClick = new Button.ButtonClickedEvent(); loginButton.onClick.AddListener(this.OnLoginButtonPressed); }
public ViewControllerCreateAccount() { panelView = Assist.LoadUI(PANEL_PREFAB_PATH); visible = false; email = Assist.FindComponent <InputField>(panelView, "email"); password = Assist.FindComponent <InputField>(panelView, "password"); createButton = Assist.FindComponent <Button>(panelView, "create_button"); createButton.onClick = new Button.ButtonClickedEvent(); createButton.onClick.AddListener(this.OnCreateButtonPressed); }