Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
another world in jucheland
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
nippon culture research center
another world in jucheland
Commits
839efcac
Commit
839efcac
authored
6 years ago
by
18김민수
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ending game bug fix
parent
e98949e1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
23 deletions
+56
-23
EndingGameManager.cs
...ets/ISEKAI_VIEW/Minigames/EndingGame/EndingGameManager.cs
+8
-2
EndingGameUnit.cs
...Assets/ISEKAI_VIEW/Minigames/EndingGame/EndingGameUnit.cs
+22
-3
NKSoldier.cs
...ssets/ISEKAI_VIEW/Minigames/EndingGame/Units/NKSoldier.cs
+8
-6
EndingGameScene.unity
ISEKAI/Assets/Scenes/EndingGameScene.unity
+18
-12
No files found.
ISEKAI/Assets/ISEKAI_VIEW/Minigames/EndingGame/EndingGameManager.cs
View file @
839efcac
...
...
@@ -54,6 +54,8 @@ public class EndingGameManager : MonoBehaviour
public
Image
[]
productionQueueImage
;
public
Button
nextWave
;
public
Text
currentProductionText
;
public
int
riflemanCount
=
3
;
public
int
currentWaveNumber
=
0
;
...
...
@@ -381,15 +383,17 @@ public class EndingGameManager : MonoBehaviour
string
unitName
=
productionQueue
.
Dequeue
();
_UpdateProductionQueue
();
float
productionTime
=
_GetProductionTime
(
unitName
);
yield
return
(
_bar
=
StartCoroutine
(
_ProgressBarHandler
(
productionTi
me
)));
yield
return
(
_bar
=
StartCoroutine
(
_ProgressBarHandler
(
unitNa
me
)));
MakeAllyUnit
(
unitName
);
}
}
}
private
IEnumerator
_ProgressBarHandler
(
float
unitTi
me
)
private
IEnumerator
_ProgressBarHandler
(
string
unitNa
me
)
{
currentProductionText
.
text
=
unitName
+
" 생산중"
;
float
unitTime
=
_GetProductionTime
(
unitName
);
float
progress
=
0
;
while
(
progressBar
.
maxValue
>
progress
)
{
...
...
@@ -398,6 +402,7 @@ public class EndingGameManager : MonoBehaviour
yield
return
null
;
}
progressBar
.
value
=
progressBar
.
minValue
;
currentProductionText
.
text
=
""
;
}
public
void
TurnOnAndOffNextWaveButton
()
...
...
@@ -417,6 +422,7 @@ public class EndingGameManager : MonoBehaviour
StopCoroutine
(
_production
);
StopCoroutine
(
_bar
);
progressBar
.
value
=
progressBar
.
minValue
;
currentProductionText
.
text
=
""
;
_UpdateProductionQueue
();
UpdateWaveNumber
();
}
...
...
This diff is collapsed.
Click to expand it.
ISEKAI/Assets/ISEKAI_VIEW/Minigames/EndingGame/EndingGameUnit.cs
View file @
839efcac
...
...
@@ -61,12 +61,31 @@ public abstract class EndingGameUnit : MonoBehaviour
int
moveSpeed
;
if
(
isAllyUnit
)
{
moveSpeed
=
speed
;
if
(
endingGame
.
deployedEnemyUnits
.
FirstOrDefault
()
!=
null
)
{
if
(
endingGame
.
deployedEnemyUnits
.
First
().
transform
.
position
.
x
-
transform
.
position
.
x
>=
(
unitSize
+
endingGame
.
deployedEnemyUnits
.
First
().
GetComponent
<
EndingGameUnit
>().
unitSize
)
/
2
)
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
}
else
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
}
else
{
moveSpeed
=
-
speed
;
if
(!
isInBattleState
&&
!
isTooCloseFrontUnit
)
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
if
(
endingGame
.
deployedAllyUnits
.
FirstOrDefault
()
!=
null
)
{
if
(-
endingGame
.
deployedAllyUnits
.
First
().
transform
.
position
.
x
+
transform
.
position
.
x
>=
unitSize
+
endingGame
.
deployedAllyUnits
.
First
().
GetComponent
<
EndingGameUnit
>().
unitSize
)
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
}
else
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
}
}
public
void
Attack
()
...
...
This diff is collapsed.
Click to expand it.
ISEKAI/Assets/ISEKAI_VIEW/Minigames/EndingGame/Units/NKSoldier.cs
View file @
839efcac
...
...
@@ -26,15 +26,17 @@ public class NKSoldier : EndingGameUnit
int
moveSpeed
;
if
(
isAllyUnit
)
moveSpeed
=
speed
;
moveSpeed
=
-
speed
;
if
(
endingGame
.
deployedAllyUnits
.
FirstOrDefault
()
!=
null
)
{
if
(-
endingGame
.
deployedAllyUnits
.
First
().
transform
.
position
.
x
+
transform
.
position
.
x
>=
unitSize
+
endingGame
.
deployedAllyUnits
.
First
().
GetComponent
<
EndingGameUnit
>().
unitSize
)
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
}
else
moveSpeed
=
-
speed
;
if
(!
isInBattleState
&&
!
isTooCloseFrontUnit
)
transform
.
Translate
(
moveSpeed
*
Time
.
deltaTime
,
0
,
0
);
if
(
endingGame
.
deployedAllyUnits
.
Count
>
0
)
if
(
endingGame
.
deployedAllyUnits
.
Peek
()?.
GetComponent
<
EndingGameUnit
>().
unitNumber
==
8
&&
!
endingGame
.
deployedEnemyUnits
.
Any
(
u
=>
u
.
GetComponent
<
EndingGameUnit
>().
unitNumber
==
10
))
...
...
This diff is collapsed.
Click to expand it.
ISEKAI/Assets/Scenes/EndingGameScene.unity
View file @
839efcac
...
...
@@ -1366,8 +1366,8 @@ RectTransform:
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
17
.15
,
y
:
272
}
m_SizeDelta
:
{
x
:
-34.3
,
y
:
-34.3
}
m_AnchoredPosition
:
{
x
:
17
5.3
,
y
:
313.4
}
m_SizeDelta
:
{
x
:
201.22
,
y
:
-76.61
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&895975665
MonoBehaviour
:
...
...
@@ -1378,7 +1378,7 @@ MonoBehaviour:
m_GameObject
:
{
fileID
:
895975663
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Script
:
{
fileID
:
708705254
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
...
...
@@ -1389,15 +1389,20 @@ MonoBehaviour:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
10907
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_Type
:
1
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
m_UseSpriteMesh
:
0
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
21
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
10
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
---
!u!222
&895975666
CanvasRenderer
:
m_ObjectHideFlags
:
0
...
...
@@ -2758,6 +2763,7 @@ MonoBehaviour:
-
{
fileID
:
1383618688
}
-
{
fileID
:
217557721
}
nextWave
:
{
fileID
:
247065147
}
currentProductionText
:
{
fileID
:
895975665
}
riflemanCount
:
3
currentWaveNumber
:
0
food
:
{
fileID
:
1686207435
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment