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); } }
public Transform PoolySpawn(string itemName, Vector3 position, Vector3 rotation, Transform parent) { return(Pooly.Spawn(itemName, position, rotation, parent)); }
public Transform PoolySpawn(Transform prefab, Vector3 position, Vector3 rotation, Transform parent) { return(Pooly.Spawn(prefab, position, rotation, parent)); }
public Transform PoolySpawn(string itemName, Vector3 position, Quaternion rotation) { return(Pooly.Spawn(itemName, position, rotation));; }
public Transform PoolySpawn(Transform prefab, Vector3 position, Quaternion rotation) { return(Pooly.Spawn(prefab, position, rotation));; }
public Transform PoolySpawn(string itemName) { return(Pooly.Spawn(itemName, Vector3.zero, Vector3.zero));; }