示例#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;
 }
示例#2
0
        public void SelectInput(Zone zone, Input input, Action <SendResult> OnComplete)
        {
            SelectInput si = new SelectInput(zone, input);

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

            SendCommand(si, true);
        }
示例#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"));
 }