Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Deokwon committed Aug 19, 2017
1 parent 8ab5300 commit 7af4238
Show file tree
Hide file tree
Showing 389 changed files with 618 additions and 253 deletions.
1 change: 1 addition & 0 deletions Assets/Scene/InGame/Scripts/Hero/Hero.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void OnTriggerEnter2D(Collider2D other)
if (other.gameObject.CompareTag("Monster"))
{
Debug.Log("Game Over");
GameTime.timeScale = 0f;
gameEnd.SetTrigger("GameEnd");
}
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scene/InGame/Scripts/Monster/MHexa/MHexaBaby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void Update()

IEnumerator spawnMonster()
{
while (true)
while (!GameTime.timeScale.Equals(0))
{
yield return new WaitForSeconds(spawnCount);

Expand Down
2 changes: 1 addition & 1 deletion Assets/Scene/InGame/Scripts/Monster/MPenta/MPenta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ IEnumerator update()
{
while (true)
{
transform.Rotate(new Vector3(0, 0, -50 * Time.deltaTime * moveVariation));
transform.Rotate(new Vector3(0, 0, -50 * GameTime.deltaTime * moveVariation));

moveToTarget();

Expand Down
2 changes: 1 addition & 1 deletion Assets/Scene/InGame/Scripts/Monster/MPenta/MPentaBaby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void Update()

IEnumerator spawnMonster()
{
while (true)
while (!GameTime.timeScale.Equals(0))
{
yield return new WaitForSeconds(spawnCount);

Expand Down
2 changes: 1 addition & 1 deletion Assets/Scene/InGame/Scripts/Monster/MRect/MRectBaby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void Update()

IEnumerator spawnMonster()
{
while (true)
while (!GameTime.timeScale.Equals(0))
{
yield return new WaitForSeconds(spawnCount);

Expand Down
Binary file modified Library/AssetServerCacheV3
Binary file not shown.
Loading

0 comments on commit 7af4238

Please sign in to comment.