Skip to content

Commit

Permalink
input fix, but color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMejmun committed Jan 22, 2017
1 parent 57b1b68 commit e2e6b67
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 21 deletions.
Binary file modified GGJ17/Assets/Prefab/Psi.prefab
Binary file not shown.
Binary file modified GGJ17/Assets/Prefab/PsiRed.prefab
Binary file not shown.
Binary file modified GGJ17/Assets/Scene/MainScene.unity
Binary file not shown.
5 changes: 0 additions & 5 deletions GGJ17/Assets/Script/GameOverScreen/gameOverInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ void Start()
sceneStartTime = Time.time;
}

void Awake()
{
sceneStartTime = Time.time;
}

// Update is called once per frame
void Update()
{
Expand Down
4 changes: 3 additions & 1 deletion GGJ17/Assets/Script/GameOverScreen/gameOverSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ public class gameOverSpawner : MonoBehaviour
public GameObject psiPrefab;
public float spawnDuration;
public float waitBetween;
private float sceneStartTime;

// Use this for initialization
void Start()
{
sceneStartTime = Time.time;
StartCoroutine(PsiRain(psiPrefab));
}

Expand All @@ -23,6 +25,6 @@ IEnumerator PsiRain(GameObject prefab)
Random.Range(0f, 360f),
Random.Range(0f, 360f))));
yield return new WaitForSeconds(waitBetween);
} while (spawnDuration > Time.time);
} while (spawnDuration > Time.time - sceneStartTime);
}
}
5 changes: 0 additions & 5 deletions GGJ17/Assets/Script/TitleScreen/titleInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ void Start()
sceneStartTime = Time.time;
}

void Awake()
{
sceneStartTime = Time.time;
}

// Update is called once per frame
void Update()
{
Expand Down
4 changes: 3 additions & 1 deletion GGJ17/Assets/Script/TitleScreen/titleSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ public class titleSpawner : MonoBehaviour
public GameObject psiPrefab;
public float spawnDuration;
public float waitBetween;
private float sceneStartTime;

// Use this for initialization
void Start()
{
sceneStartTime = Time.time;
StartCoroutine(PsiRain(psiPrefab));
}

Expand All @@ -23,6 +25,6 @@ IEnumerator PsiRain(GameObject prefab)
Random.Range(0f, 360f),
Random.Range(0f, 360f))));
yield return new WaitForSeconds(waitBetween);
} while (spawnDuration > Time.time);
} while (spawnDuration > Time.time - sceneStartTime);
}
}
9 changes: 0 additions & 9 deletions GGJ17/Assets/Script/WorldControl.meta

This file was deleted.

0 comments on commit e2e6b67

Please sign in to comment.