init
This commit is contained in:
commit
9afd57306d
323 changed files with 204673 additions and 0 deletions
20
Assets/Scripts/Game03/FlappyLevelGenerator.cs
Normal file
20
Assets/Scripts/Game03/FlappyLevelGenerator.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FlappyLevelGenerator : MonoBehaviour{
|
||||
|
||||
public GameObject levelTube;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start(){
|
||||
for (int i = 0; i < 10; i++){
|
||||
Instantiate(levelTube, new Vector2(4 + 5 * i, Random.Range(-3, 3)), Quaternion.identity);
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update(){
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue