// Start is called before the first frame update void Start() { PointsArray = GameObject.FindGameObjectsWithTag("SpawnPoint"); rbP0 = Part0.GetComponent <Rigidbody2D>(); rbP1 = Part1.GetComponent <Rigidbody2D>(); rbP2 = Part2.GetComponent <Rigidbody2D>(); TextBar = GameObject.FindGameObjectWithTag("ScoreText"); ScoreBar = TextBar.GetComponent <Text>(); StartCoroutine("SpeedUp", 1f); }