private void KillPlayer() { if (runes.GetActiveRuneCount() > 0) { transform.position = cavemanStartPos; StopCoroutine("Blink"); enabledCaveman.EnableScripts(false); health = startHealth; life.UpdateHealthUI(health); dw.SetWordTracker(11); dw.EnablePanel(true); } else { LevelManager.instance.LoadScene("End_Lose"); } }
private IEnumerator FadeInAlpha(int index) { runes[index].enabled = true; Color spriteColor = runes[currentRune].color; for (int i = 1; i <= 100; i++) { spriteColor.a = i / 100f; runes[index].color = spriteColor; yield return(new WaitForEndOfFrame()); } shaman.Summon(false); if (currentRune >= 4) { Debug.Log("Spawning Portal"); dw.SetWordTracker(12); dw.EnablePanel(true); portal.EnablePortal(); } }
public void StartRebirthAnimation() { animator.SetTrigger("Rebirth"); shaman.Summon(true); dw.SetWordTracker(9); }