Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MIM
man-in-the-mirror
Commits
2b164633
Commit
2b164633
authored
Aug 09, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
들어올 파일에 맞게 수정
parent
c1f90ef9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
Stages.meta
Assets/Resources/Stages.meta
+0
-8
StageSelector.cs
Assets/Scripts/StageSelector.cs
+5
-5
No files found.
Assets/Resources/Stages.meta
deleted
100644 → 0
View file @
c1f90ef9
fileFormatVersion: 2
guid: 9c461e467311d5b44adb80593e57c448
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/StageSelector.cs
View file @
2b164633
...
...
@@ -32,8 +32,8 @@ public class StageSelector : SingletonBehaviour<StageSelector>
public
Sprite
mainTrue
;
public
Color
mainTrueColor
=
new
Color
(
0.1921569f
,
1f
,
0.3843138f
);
int
maxRow
=
8
;
// y-=155
private
Vector3
generatePoint
=
new
Vector3
(-
470
,
265
);
// x+=160
private
Vector3
titleGeneratePoint
=
new
Vector3
(-
770
,
265
);
private
Vector3
generatePoint
=
new
Vector3
(-
470
,
360
);
// x+=160
private
Vector3
titleGeneratePoint
=
new
Vector3
(-
770
,
360
);
public
void
GenerateStageUI
()
{
...
...
@@ -52,13 +52,13 @@ public class StageSelector : SingletonBehaviour<StageSelector>
{
var
uiInst
=
Instantiate
(
buttonUI
,
transform
);
var
uiText
=
uiInst
.
GetComponentInChildren
<
Text
>();
string
uiStage
=
i
+
"_"
+
j
;
string
uiStage
=
(
i
+
1
)
+
"_"
+
(
j
+
1
)
;
stageIdxs
.
Add
(
uiStage
);
string
nextStage
=
(
j
+
1
<
categoryCounts
[
i
])
?
(
i
+
"_"
+
(
j
+
1
))
:
((
i
+
1
)
+
"_0"
);
string
nextStage
=
(
j
+
1
<
categoryCounts
[
i
])
?
(
(
i
+
1
)
+
"_"
+
(
j
+
2
))
:
((
i
+
2
)
+
"_0"
);
uiInst
.
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
StartSelectedStage
(
uiStage
,
nextStage
,
stageIdxCounter
));
stageIdxCounter
++;
uiInst
.
transform
.
localPosition
=
generatePoint
;
uiText
.
text
=
j
.
ToString
();
uiText
.
text
=
(
j
+
1
)
.
ToString
();
if
(
playerData
.
isCleared
.
ContainsKey
(
uiStage
)
&&
playerData
.
isCleared
[
uiStage
])
{
if
(
isColorSel
<
0
)
...
...
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