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