Exemplo n.º 1
0
    void Start()
    {
        fails         = 0; hits = 0; totalApples = 0; temporalApples = 0;
        appleVelocity = 2f;

        manager   = GetComponent <appleLevelManager>();
        generator = GetComponent <AppleGenerator>();
    }
Exemplo n.º 2
0
    void Start()
    {
        manager   = GetComponent <appleLevelManager>();
        regulator = GetComponent <difficultyRegulator>();

        treeAnim   = GameObject.FindGameObjectWithTag("tree").GetComponent <Animator>();
        shadowAnim = GameObject.FindGameObjectWithTag("shadow").GetComponent <Animator>();

        difficultyLevel = 1;
        totalApples     = 0;
        lastPos         = -1;
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        //cesta = GameObject.FindGameObjectWithTag("cesta");
        cestaAnim    = cesta.GetComponent <Animator>();
        isGotApple   = false;
        levelManager = GetComponent <appleLevelManager>();
        generator    = GetComponent <AppleGenerator>();

        goodSyllableText.text = "Busca\n" + levelManager.getGoodSyllable();

        goodAppleIndicator.GetComponentInChildren <Text>().text = levelManager.getGoodSyllable();
    }
Exemplo n.º 4
0
    void Start()
    {
        setAppleState("Falling");

        manager = FindObjectOfType <appleLevelManager>().GetComponent <appleLevelManager>();

        textList = manager.getSyllablesList();

        appleAnim = GetComponent <Animator>();
        textM     = GetComponentInChildren <TextMesh>();

        particles = GetComponent <ParticleSystem>();
        particles.Stop();

        //text = textList[Random.Range(0,textList.Length)];
        text       = manager.nextSyllaba;
        textM.text = text;

        timer    = 0;
        velocity = manager.getAppleVelocity();
    }
Exemplo n.º 5
0
 void Start()
 {
     manager = FindObjectOfType <appleLevelManager>();
 }