Example #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        transform.position += new Vector3(0, -Speed, 0);
        GameObject s1 = GameObject.FindWithTag("spawner2");

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