public void ClickContinue() { if (runes.GetActiveRuneCount() < 4) { if (wordTracker == 10) { Debug.Log("Word Tracker 10"); soulCounter.BuildRune(); } else if (wordTracker == 11) { Debug.Log("Word Tracker 11"); soulCounter.DestroyRune(); } } else { Debug.Log("Rune count maxed out"); } //last message in this series if (messages[wordTracker].EndMessage == true) { EndOfMenu(); EnablePanel(false); spawnEnemies.CanSpawnEnemies = true; spawnEnemies.ResetNumEnemies(); } else { EndOfMenu(); StartCoroutine("WriteWords"); } }
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"); } }