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
de53a70f
Commit
de53a70f
authored
Nov 13, 2018
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
짜잘한거 수정
parent
29bd902f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
ItemRoom.meta
Assets/Prefabs/Rooms/ItemRoom.meta
+8
-0
Test.cs
Assets/Scripts/TetrisMap/Test.cs
+11
-1
No files found.
Assets/Prefabs/Rooms/ItemRoom.meta
0 → 100644
View file @
de53a70f
fileFormatVersion: 2
guid: 0aa1c86779a88b84fb24b8cbe899753a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/TetrisMap/Test.cs
View file @
de53a70f
...
@@ -4,6 +4,8 @@ using UnityEngine;
...
@@ -4,6 +4,8 @@ using UnityEngine;
public
class
Test
:
MonoBehaviour
{
public
class
Test
:
MonoBehaviour
{
public
static
Vector3
tetrisCameraCoord
=
new
Vector3
(
180
,
240
,
-
1
);
public
static
float
tetrisMapSize
=
300
;
public
void
ChangeTetrimino
()
public
void
ChangeTetrimino
()
{
{
...
@@ -30,5 +32,13 @@ public class Test : MonoBehaviour {
...
@@ -30,5 +32,13 @@ public class Test : MonoBehaviour {
ChangeTetrimino
();
ChangeTetrimino
();
if
(
Input
.
GetKeyDown
(
KeyCode
.
Alpha2
))
if
(
Input
.
GetKeyDown
(
KeyCode
.
Alpha2
))
SpawnBossTetrimino
();
SpawnBossTetrimino
();
}
if
(
Input
.
GetKeyDown
(
KeyCode
.
Tab
)
&&
GameManager
.
gameState
!=
GameManager
.
GameState
.
Tetris
)
{
GameManager
.
gameState
=
GameManager
.
GameState
.
Tetris
;
GameObject
.
Find
(
"Main Camera"
).
transform
.
position
=
tetrisCameraCoord
;
GameObject
.
Find
(
"Main Camera"
).
GetComponent
<
Camera
>().
orthographicSize
=
tetrisMapSize
;
}
else
if
(
Input
.
GetKeyDown
(
KeyCode
.
Tab
)
&&
GameManager
.
gameState
==
GameManager
.
GameState
.
Tetris
)
GameManager
.
gameState
=
GameManager
.
GameState
.
Ingame
;
}
}
}
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