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

        sc = s1.GetComponent <SpawnController1>();
    }
Example #3
0
 // Update is called once per frame
 void FixedUpdate()
 {
     transform.position += new Vector3(Speed,0,0);
     GameObject s1 = GameObject.FindWithTag("spawner1");
     sc = s1.GetComponent<SpawnController1>();
 }