Beispiel #1
0
 public void Spawnblock()
 {
     for (int i = 0; i < level; i++)
     {
         int       x       = Random.Range(-5, 5);
         int       y       = Random.Range(-4, 4);
         Transform current = Pooly.Spawn("block", new Vector3(x, y, 0), Quaternion.identity);
         current.GetComponent <block>().life = Random.Range(1, level);
     }
 }
Beispiel #2
0
 public Transform PoolySpawn(string itemName, Vector3 position, Vector3 rotation, Transform parent)
 {
     return(Pooly.Spawn(itemName, position, rotation, parent));
 }
Beispiel #3
0
 public Transform PoolySpawn(Transform prefab, Vector3 position, Vector3 rotation, Transform parent)
 {
     return(Pooly.Spawn(prefab, position, rotation, parent));
 }
Beispiel #4
0
 public Transform PoolySpawn(string itemName, Vector3 position, Quaternion rotation)
 {
     return(Pooly.Spawn(itemName, position, rotation));;
 }
Beispiel #5
0
 public Transform PoolySpawn(Transform prefab, Vector3 position, Quaternion rotation)
 {
     return(Pooly.Spawn(prefab, position, rotation));;
 }
Beispiel #6
0
 public Transform PoolySpawn(string itemName)
 {
     return(Pooly.Spawn(itemName, Vector3.zero, Vector3.zero));;
 }