void Start() { fadePanel = GameObject.Find("FadeController").GetComponent <BlackOutAnimation>(); player = GetComponent <PlayerStatus>(); startingHealth = player.getTotalHP(); currentHealth = startingHealth; healthBar.SetMaxHealth(currentHealth); rend = GetComponent <Renderer>(); storedColor = rend.material.GetColor("_Color"); PlayerStatus.OnLevelUp += FullHeal; }
private void Start() { BoAnimation = GetComponent <BlackOutAnimation>(); BoAnimation.EnteringScene(0); }