コード例 #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>();
    }
コード例 #2
0
 void Start()
 {
     spawnController  = FindObjectOfType <SpawnController> ();
     spawnController1 = FindObjectOfType <SpawnController1> ();
     spawnController2 = FindObjectOfType <SpawnController2> ();
     spawnController3 = FindObjectOfType <SpawnController3> ();
 }
コード例 #3
0
ファイル: Note2Controller.cs プロジェクト: Mazax/Rhythm-game
 // Update is called once per frame
 void FixedUpdate()
 {
     transform.position += new Vector3(0,-Speed,0);
     GameObject s1 = GameObject.FindWithTag("spawner2");
     sc = s1.GetComponent<SpawnController2>();
 }