// Update is called once per frame void FixedUpdate() { transform.position += new Vector3(0, -Speed, 0); GameObject s1 = GameObject.FindWithTag("spawner2"); sc = s1.GetComponent <SpawnController2>(); }
void Start() { spawnController = FindObjectOfType <SpawnController> (); spawnController1 = FindObjectOfType <SpawnController1> (); spawnController2 = FindObjectOfType <SpawnController2> (); spawnController3 = FindObjectOfType <SpawnController3> (); }
// Update is called once per frame void FixedUpdate() { transform.position += new Vector3(0,-Speed,0); GameObject s1 = GameObject.FindWithTag("spawner2"); sc = s1.GetComponent<SpawnController2>(); }