Commit bee32991 authored by 19조민근's avatar 19조민근 Committed by 18신대성

플레이어관련 승리조건 오류수정 및 6-3맵 수정

parent 5b2b3e89
{"objects":[{"tag":0,"xPos":5.0,"yPos":0.0},{"tag":2,"xPos":0.0,"yPos":0.5},{"tag":2,"xPos":-0.5,"yPos":0.0},{"tag":2,"xPos":0.0,"yPos":-0.5},{"tag":2,"xPos":0.5,"yPos":0.0},{"tag":1,"xPos":0.0,"yPos":0.0},{"tag":4,"xPos":0.0,"yPos":0.0}],"clears":[{"type":3,"goal":5}],"cases":[],"bullets":[2,1,2,1,2,1,2,1,2,1,2,1],"comments":null}
\ No newline at end of file
{"objects":[{"tag":0,"xPos":15.0,"yPos":0.0},{"tag":2,"xPos":-0.5,"yPos":0.0},{"tag":2,"xPos":-1.5,"yPos":0.0},{"tag":2,"xPos":-1.0,"yPos":-0.5},{"tag":3,"xPos":-1.0,"yPos":0.5},{"tag":1,"xPos":-1.0,"yPos":0.0},{"tag":1,"xPos":1.0,"yPos":0.0},{"tag":9,"xPos":1.0,"yPos":0.0},{"tag":4,"xPos":-1.0,"yPos":0.0}],"clears":[{"type":0,"goal":3},{"type":3,"goal":5}],"cases":[],"bullets":[2,1,1,1,2,1,2,1,2,1],"comments":null}
\ No newline at end of file
......@@ -24,7 +24,7 @@ public class ClearCondition
{
count += _count;
goal += _goal;
if (((type == ClearType.White || type == ClearType.Black) ? goal == count : goal <= count) && !isDone)
if (((type == ClearType.White || type == ClearType.Black || type == ClearType.NPlayer) ? goal == count : goal <= count) && !isDone)
{
GameManager.inst.clearCounter--;
isDone = true;
......@@ -32,7 +32,7 @@ public class ClearCondition
if (GameManager.inst.clearCounter == 0)
GameManager.inst.StartCoroutine(GameManager.inst.ClearStage());
}
else if (((type == ClearType.White || type == ClearType.Black) ? goal != count : goal > count) && isDone)
else if (((type == ClearType.White || type == ClearType.Black || type == ClearType.NPlayer) ? goal != count : goal > count) && isDone)
{
GameManager.inst.clearCounter++;
isDone = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment