void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); effect = GameObject.FindGameObjectWithTag("PlayerUI").transform.Find("HealthBubblesEffect").GetComponent <AddingHealthUIEffect>(); claimRewardPrompt.enabled = false; }
private void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); effect = GameObject.FindGameObjectWithTag("PlayerUI").transform.Find("HealthBubblesEffect").GetComponent <AddingHealthUIEffect>(); maxHealth = health; exitText.enabled = false; exit.SetActive(false); }
public virtual void Start() { currentHealth = maxHealth; effect = GameObject.FindGameObjectWithTag("PlayerUI").transform.Find("HealthBubblesEffect").GetComponent <AddingHealthUIEffect>(); }