private void Start() { returnVelocity = 1; lowestRowController = GameObject.Find("LevelContainer").GetComponent <LowestRowTrigger>(); rowInfo = GameObject.Find("LevelContainer").GetComponent <RowGeneration>(); controller = GameObject.FindWithTag("Cloner").GetComponent <BallController>(); }
// Use this for initialization public void Create() { ballControl = GameObject.Find("Ball Cloner").GetComponent <BallController>(); powerUpControl = ballControl.GetComponent <PowerUpController>(); rowControl = GameObject.Find("LevelContainer").GetComponent <RowGeneration>(); lifeText = transform.GetChild(0).GetChild(0).GetComponent <Text>(); Artwork = transform.GetChild(1).GetComponent <SpriteRenderer>(); lifeText.color = Color.white; int min = rowControl.currentRow - 1; int max = min + 2; lives = Random.Range(min, max); lifeText.text = lives.ToString(); }
private void Start() { rowGenerator = transform.parent.GetComponent <RowGeneration>(); StartCoroutine(infoUpdate()); }
// Use this for initialization void Start() { ballControl = GameObject.Find("Ball Cloner").GetComponent <BallController>(); rowInfo = GetComponent <RowGeneration>(); CurrentScore = ScoreKeep.score; }