Ejemplo n.º 1
0
 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");
     }
 }
Ejemplo n.º 2
0
    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();
        }
    }
Ejemplo n.º 3
0
 public void StartRebirthAnimation()
 {
     animator.SetTrigger("Rebirth");
     shaman.Summon(true);
     dw.SetWordTracker(9);
 }