Readd missing import files
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CreateStacksFromCode : MonoBehaviour {
|
||||
|
||||
public GameObject[] prefabs;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
StackUtility.CreateStack(
|
||||
"Stack" + i, //name
|
||||
new Vector3(-7 + 3.5f*i, 0, 0), //position
|
||||
0, //rotation
|
||||
5, //count
|
||||
prefabs,
|
||||
2, //start scale
|
||||
1, //end scale
|
||||
0, //scale variation
|
||||
0, //random position offset
|
||||
0, //start rotation variance
|
||||
0, //object rotation variance
|
||||
10, //object rotation offset
|
||||
0, //pYOffset
|
||||
false //Create compound collider
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user