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);
    }
示例#3
0
    public virtual void Start()
    {
        currentHealth = maxHealth;

        effect = GameObject.FindGameObjectWithTag("PlayerUI").transform.Find("HealthBubblesEffect").GetComponent <AddingHealthUIEffect>();
    }