Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
98380d96
Commit
98380d96
authored
Sep 19, 2018
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
일단 급한대로 Room 추가합니다.
parent
b2476c4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
13 deletions
+58
-13
TetrominoSpawner.prefab
Assets/Prefabs/TetrisMap/TetrominoSpawner.prefab
+1
-1
Room.cs
Assets/Scripts/TetrisMap/Room.cs
+56
-11
Sprites.meta
Assets/Sprites.meta
+1
-1
No files found.
Assets/Prefabs/TetrisMap/TetrominoSpawner.prefab
View file @
98380d96
...
...
@@ -21,7 +21,7 @@ GameObject:
-
component
:
{
fileID
:
4174769992511172
}
-
component
:
{
fileID
:
114708550263071082
}
m_Layer
:
0
m_Name
:
Tetr
i
minoSpawner
m_Name
:
Tetr
o
minoSpawner
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
...
...
Assets/Scripts/TetrisMap/Room.cs
View file @
98380d96
...
...
@@ -2,15 +2,60 @@
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
Room
:
MonoBehaviour
{
// Use this for initialization
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
/// <summary>
/// Room class
/// </summary>
public
class
Room
:
MonoBehaviour
{
/// <summary>
/// Room's Location on tetris map.
/// Not related to real location.
/// </summary>
public
Vector3
mapLocation
;
/// <summary>
/// Door info per rooms.
/// 0 for up, 1 for down.
/// doorInfo[0] for left door, doorInfo[1] for right door.
/// </summary>
public
int
[]
doorInfo
;
/// <summary>
/// Stage per rooms.
/// Range from 0 to 4.
/// </summary>
public
int
stage
;
/// <summary>
/// Room concept per rooms.
/// Range from 0 to 3.
/// </summary>
public
int
roomConcept
;
/// <summary>
/// Item room type per rooms.
/// 0 for normal room, 1~ for item rooms.
/// </summary>
public
int
itemRoomType
;
/// <summary>
/// Special room type per rooms.
/// 0 for normal room, 1 for boss room, 2, 3, 4 for both side, gold shop, amethyst shop.
/// </summary>
public
int
specialRoomType
;
/// <summary>
/// Select which doors would be opened.
/// </summary>
public
void
SetDoors
()
{
}
void
Awake
()
{
doorInfo
=
new
int
[
2
]
{
0
,
0
};
}
}
Assets/Sprites.meta
View file @
98380d96
fileFormatVersion: 2
guid:
77fd020ad10265b4482c930adcb72e12
guid:
8c27ef23185b0fd4da5cda273d244e24
folderAsset: yes
DefaultImporter:
externalObjects: {}
...
...
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