Example #1
0
 void Start()
 {
     timer          = GetComponent <Timer>();
     currentPlayer  = GetComponent <CurrentPlayer>();
     followPlayer   = GameObject.Find("Main Camera").GetComponent <FollowPlayer>();
     selectInput    = GetComponent <SelectInput>();
     inventoryInput = GetComponent <InventoryInput>();
     go             = true;
 }
Example #2
0
        public void SelectInput(Zone zone, Input input, Action <SendResult> OnComplete)
        {
            SelectInput si = new SelectInput(zone, input);

            SendCommand(si, false, OnComplete);
        }
Example #3
0
        /// <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));
        }
Example #4
0
        public void SelectInput(Zone zone, Input input)
        {
            SelectInput si = new SelectInput(zone, input);

            SendCommand(si, true);
        }
Example #5
0
 /// <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"));
 }