Exemplo n.º 1
0
    IEnumerator LoadScene()
    {
        StartCoroutine(WebManager.ConnectDB(indexNextScene - 1, HeroMove.num_coins, 1, 0, Math.Abs(Convert.ToInt32(Timer.minutes * 60 + Timer.seconds))));
        HM.enabled = false;
        animHero.SetBool("onDeath", true);
        animHero.SetBool("onDeathAstral", false);
        animHero.Play("hero_death");
        yield return(new WaitForSeconds(0.8f));

        gear.GearWindow(indexNextScene);
    }
Exemplo n.º 2
0
 void Death()
 {
     anim.SetBool("onDeath", onDeath);
     anim.SetBool("onDeathAstral", onDeathAstral);
     if (onDeath && onDeathAstral)
     {
         StartCoroutine(WebManager.ConnectDB(door.indexNextScene - 1, 0, 0, 1, 999999));
         onDeathAstral = false;
         Invoke("Spawn", 1);
     }
 }