Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curvedflats
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
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
Flatland
curvedflats
Commits
37c6f888
Commit
37c6f888
authored
Aug 23, 2019
by
16이진형
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
레벨 선택
parent
c7470ac0
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
394 additions
and
25 deletions
+394
-25
level select.unity
Assets/Scenes/level select.unity
+315
-22
LevelManager.cs
Assets/Scripts/LevelManager/abstract/LevelManager.cs
+14
-1
SelectManager.cs
Assets/SelectManager.cs
+40
-0
SelectManager.cs.meta
Assets/SelectManager.cs.meta
+11
-0
EditorBuildSettings.asset
ProjectSettings/EditorBuildSettings.asset
+14
-2
No files found.
Assets/Scenes/level select.unity
View file @
37c6f888
This diff is collapsed.
Click to expand it.
Assets/Scripts/LevelManager/abstract/LevelManager.cs
View file @
37c6f888
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
public
class
LevelManager
:
MonoBehaviour
{
...
...
@@ -59,11 +60,12 @@ public class LevelManager : MonoBehaviour
protected
virtual
void
OnWin
()
{
uiManager
.
WinTextOn
();
GoToSelectTime
(
3.0f
);
}
protected
virtual
void
OnLose
()
{
GoToSelectTime
(
3.0f
);
}
protected
virtual
bool
LoseCondition
()
...
...
@@ -96,4 +98,15 @@ public class LevelManager : MonoBehaviour
{
return
(
a
.
x
-
b
.
x
)
*
(
a
.
x
-
b
.
x
)
+
(
a
.
z
-
b
.
z
)
*
(
a
.
z
-
b
.
z
);
}
public
void
GoToSelectTime
(
float
time
)
{
Invoke
(
"GoToSelect"
,
time
);
}
public
void
GoToSelect
()
{
SceneManager
.
LoadScene
(
"level select"
);
}
}
Assets/SelectManager.cs
0 → 100644
View file @
37c6f888
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
public
class
SelectManager
:
MonoBehaviour
{
// Start is called before the first frame update
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
void
Tutorial1
()
{
SceneManager
.
LoadScene
(
"Tutorial1"
);
}
public
void
Tutorial2
()
{
SceneManager
.
LoadScene
(
"Tutorial2"
);
}
public
void
ClockLevel
()
{
SceneManager
.
LoadScene
(
"ClockLevel"
);
}
public
void
LaserLevel
()
{
SceneManager
.
LoadScene
(
"LaserLevel"
);
}
}
Assets/SelectManager.cs.meta
0 → 100644
View file @
37c6f888
fileFormatVersion: 2
guid: 96c5efcc6eb4ba34fbbba782b8ce6cef
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
ProjectSettings/EditorBuildSettings.asset
View file @
37c6f888
...
...
@@ -6,6 +6,18 @@ EditorBuildSettings:
serializedVersion
:
2
m_Scenes
:
-
enabled
:
1
path
:
Assets/Scenes/SampleScene.unity
guid
:
2cda990e2423bbf4892e6590ba056729
path
:
Assets/Scenes/level select.unity
guid
:
ac215a62b362fed4c96e1b743e6129d6
-
enabled
:
1
path
:
Assets/Scenes/Tutorial1.unity
guid
:
12692d9cab42fcb40b798b950551a49f
-
enabled
:
1
path
:
Assets/Scenes/Tutorial2.unity
guid
:
75d221baaab6fff42966b5c132c589be
-
enabled
:
1
path
:
Assets/Scenes/ClockLevel.unity
guid
:
09fd81914134c4f4a823ec2102b1bbfb
-
enabled
:
1
path
:
Assets/Scenes/LaserLevel.unity
guid
:
17819fa3b8a4bc74a86a04ff0afd313c
m_configObjects
:
{}
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