Esempio n. 1
0
    void Start()

    {
        movingBlock Block = Instantiate(myPrefab, new Vector3(1, -2, 30), Quaternion.identity).GetComponent <movingBlock>();

        Block._spawner = this;
    }
Esempio n. 2
0
 private void OnTriggerEnter(Collider coolider)
 {
     Debug.Log("collision");
     movingBlock Block = Instantiate(myPrefab, new Vector3(1, -2, 30), Quaternion.identity).GetComponent <movingBlock>();
     // Block._spawner = this;
 }