Commit 98380d96 authored by 18손재민's avatar 18손재민

일단 급한대로 Room 추가합니다.

parent b2476c4e
......@@ -21,7 +21,7 @@ GameObject:
- component: {fileID: 4174769992511172}
- component: {fileID: 114708550263071082}
m_Layer: 0
m_Name: TetriminoSpawner
m_Name: TetrominoSpawner
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
......
......@@ -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 };
}
}
fileFormatVersion: 2
guid: 77fd020ad10265b4482c930adcb72e12
guid: 8c27ef23185b0fd4da5cda273d244e24
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment