// Start is called before the first frame update void Start() { gameManagerScript = GameObject.Find("GameManager").GetComponent <GameManagerVariables>(); gameManagerScript.collisionFlag = collisionFlag; timer = GameObject.Find("Timer").GetComponent <Timer>(); }
// Start is called before the first frame update void Start() { this.transform.localScale = initialScale; ringInstantiateScript = GameObject.FindWithTag("Game Manager").GetComponent <RingInstantiateScript>(); gameManagerVariables = GameObject.FindWithTag("Game Manager").GetComponent <GameManagerVariables>(); maxSize = (int)gameManagerVariables.ringMaxSize; scaleSpeed = gameManagerVariables.ringSpeed; }
// Start is called before the first frame update void Start() { scoreText = GetComponent <Text>(); gameManagerScript = GameObject.Find("GameManager").GetComponent <GameManagerVariables>(); scoreFlag = false; gameManagerScript.score = 0; multiplier = 1; }
// Start is called before the first frame update void Start() { livesText = GetComponent <Text>(); gameManagerScript = GameObject.Find("GameManager").GetComponent <GameManagerVariables>(); gameManagerScript.lives = 3; }