Commit 7e79d39a authored by 18손재민's avatar 18손재민

singleton 클래스 사용하기 위해 푸쉬함, 실행하면 여전히 에러남 주의

parent cdc21c09
...@@ -83,9 +83,10 @@ public class Map : MonoBehaviour ...@@ -83,9 +83,10 @@ public class Map : MonoBehaviour
RemoveFloor(pos.x, pos.y); RemoveFloor(pos.x, pos.y);
} }
public void CreateWall(GameObject cube1, GameObject cube2) public void CreateWall(GameObject floor1, GameObject floor2)
{ {
Vector3 wallPos = (cube1.transform.position + cube2.transform.position) / 2;
Instantiate(wall, wallPos, Quaternion.identity, transform).transform.LookAt(cube1.transform);
} }
......
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