Ejemplo n.º 1
0
 void Update()
 {
     if (manager.getGameState() == "GameON")
     {
         timer += Time.deltaTime;
         CreateApple();
     }
 }
Ejemplo n.º 2
0
    void OnTriggerEnter2D(Collider2D otro)
    {
        if (otro.tag == "suelo" && appleState != "Hit")
        {
            textM.text = "";
            appleAnim.SetBool("isPlof", true);

            setAppleState("Eliminated");

            if (isGood() && manager.getGameState() == "GameON")
            {
                Instantiate(failSymbol, transform.position, Quaternion.identity);
                setAppleState("Fail");
                manager.badSelection();// manager.badSelection();
            }
        }
    }