Esempio n. 1
0
 public void OnTriggerExit2D(Collider2D o)
 {
     if (o.gameObject.CompareTag("Player"))
     {
         inside = false;
         anim.Close(animation, 0);
     }
 }
Esempio n. 2
0
    public void ShowGameover()
    {
        ButtonScreenFill f = FindFiller("gameover");

        f.icon.SetActive(true);

        ButtonInteractive("gameover", true);
        _active("gameover", true);
        FindFiller("gameover_shop").Reset();
        FindFiller("gameover_claw").Reset();
        gameoverScoreText.text = "Score\n<size=60%>0";
        anim.Close("game", 0);
        anim.Open("gameover", 3);

        //Move the walls
        StartCoroutine(MoveWalls(false));
    }
Esempio n. 3
0
    public void LobbyOpenDone(UIAnimation.UIAnimationEvent _event)
    {
        if (_event.identifier == 1)
        {
            anim.Close("controller_text", 1);
        }

        if (_event.identifier == 0)
        {
            text.text = string.Format(format, manager.warmup);
            stop      = true;
        }
    }