public TextBox(string textboxTextureId, string initialText, MouseHandler onClick = null, TextboxHandler outOfFocus = null, TextboxHandler updateKey = null, int charLimit = 26) : base( textboxTextureId, initialText, onClick) { Value = initialText; this.charLimit = charLimit; this.outOfFocus = outOfFocus; this.updateKey = updateKey; }
void Start() { pickupDisplay = GameObject.Find("LoosePacketDisplay").GetComponent <Text>(); timerDisplay = FindObjectOfType <Timer>(); healthBar = FindObjectOfType <HealthBar>(); frenzyBar = FindObjectOfType <FrenzyBar>(); bossHealthBar = FindObjectOfType <BossHealthBar>(); hackCooldownIcon = GameObject.Find("HackCooldown").GetComponent <CooldownIcon>(); teleportCooldownIcon = GameObject.Find("TeleportCooldown").GetComponent <CooldownIcon>(); textboxHandler = FindObjectOfType <TextboxHandler>(); timer = 0.0f; bossHealthBar.gameObject.SetActive(false); }