void Start() { decrease = GameObject.Find("Decrease_Score").GetComponent<ParticleSystem>(); cart = GameObject.Find("Cart"); spawner = GameObject.Find("Roadblock Spawner").GetComponent<RoadblockSpawner>(); }
void Start() { decrease = GameObject.Find("Decrease_Score").GetComponent <ParticleSystem>(); cart = GameObject.Find("Cart"); spawner = GameObject.Find("Roadblock Spawner").GetComponent <RoadblockSpawner>(); }