-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/AdronTech/GGJ_2017
- Loading branch information
Showing
9 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class titleSpawner : MonoBehaviour | ||
{ | ||
|
||
public GameObject psiPrefab; | ||
public float spawnDuration; | ||
public float waitBetween; | ||
|
||
// Use this for initialization | ||
void Start() | ||
{ | ||
StartCoroutine(PsiRain(psiPrefab)); | ||
} | ||
|
||
IEnumerator PsiRain(GameObject prefab) | ||
{ | ||
do | ||
{ | ||
Instantiate(prefab, new Vector3(0, 6, 0), Quaternion.Euler(new Vector3(Random.Range(0f, 360f), | ||
Random.Range(0f, 360f), | ||
Random.Range(0f, 360f)))); | ||
yield return new WaitForSeconds(waitBetween); | ||
} while (spawnDuration > Time.time); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.