Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        text = GetComponent <Text>();
        Game game = FindObjectOfType <Game>();

        if (type == ScoreChangeType.Points)
        {
            game.IncreasePoints.AddListener(Activate);
        }
        else
        {
            game.IncreaseTime.AddListener(ActivateTime);
        }
        anim = GetComponent <AnimatedUI>();
    }
Ejemplo n.º 2
0
    private IEnumerator WaitForClose(AnimatedUI anim, float time)
    {
        yield return(new WaitForSeconds(time));

        anim.Exit();
    }
Ejemplo n.º 3
0
    private IEnumerator WaitForOpen(AnimatedUI anim, float time)
    {
        yield return(new WaitForSeconds(time));

        anim.Play();
    }