void Start() { timer = GetComponent <Timer>(); currentPlayer = GetComponent <CurrentPlayer>(); followPlayer = GameObject.Find("Main Camera").GetComponent <FollowPlayer>(); selectInput = GetComponent <SelectInput>(); inventoryInput = GetComponent <InventoryInput>(); go = true; }
public void SelectInput(Zone zone, Input input, Action <SendResult> OnComplete) { SelectInput si = new SelectInput(zone, input); SendCommand(si, false, OnComplete); }
/// <summary> /// Return whether the value in text field is invalid /// </summary> /// <returns>True if invalid</returns> public bool IsComboBoxValueInvalid() { string invalid = SelectInput.GetAttribute("aria-invalid"); return(String.Equals(invalid, "true", StringComparison.OrdinalIgnoreCase)); }
public void SelectInput(Zone zone, Input input) { SelectInput si = new SelectInput(zone, input); SendCommand(si, true); }
/// <summary> /// Get the value of combo box /// </summary> /// <param name="key">combo box element key</param> /// <returns>Combo box value</returns> public string GetValue() { return(SelectInput.GetAttribute("value")); }