Exemple #1
0
    float zDir = 1.0f;      // Starting direction for rotation.

    // Start is called before the first frame update
    void Start()
    {
        // Instantiate a BasicCubePrefab, then get its BasicCube.cs script.
        bc1 = Instantiate(bcPrefab).GetComponent <BasicCube>();
        bc2 = Instantiate(bcPrefab).GetComponent <BasicCube>();
    }