void Start() { fails = 0; hits = 0; totalApples = 0; temporalApples = 0; appleVelocity = 2f; manager = GetComponent <appleLevelManager>(); generator = GetComponent <AppleGenerator>(); }
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; }
// 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(); }
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(); }
void Start() { manager = FindObjectOfType <appleLevelManager>(); }