Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/AdronTech/GGJ_2017
Browse files Browse the repository at this point in the history
  • Loading branch information
LEM-II\Ilja committed Jan 21, 2017
2 parents 1735d78 + d064e2c commit d0e2ae5
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 0 deletions.
Binary file added GGJ17/Assets/Prefab/Psi.prefab
Binary file not shown.
8 changes: 8 additions & 0 deletions GGJ17/Assets/Prefab/Psi.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions GGJ17/Assets/Script/TitleScreen.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions GGJ17/Assets/Script/TitleScreen/titleSpawner.cs
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);
}
}
12 changes: 12 additions & 0 deletions GGJ17/Assets/Script/TitleScreen/titleSpawner.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0e2ae5

Please sign in to comment.