Commit 444080d3 authored by 18신대성's avatar 18신대성 Committed by 18손재민

Init시 바닥에 object가 들어가게 함.

parent af576cf5
......@@ -22,6 +22,7 @@ public class Briefcase : MonoBehaviour, IObject, IPlayerInteractor
{
if (GameManager.aCase >= 0) MapManager.inst.currentMap.clearConditions[GameManager.aCase].IsDone(0, 1);
this.floor = floor;
floor.objOnFloor = this;
PlayerController.inst.OnPlayerMove += Interact;
}
......
......@@ -11,6 +11,7 @@ public class CameraTurret : MonoBehaviour, IObject, IBreakable, IPlayerInteracto
public void Init(Floor floor)
{
this.floor = floor;
floor.objOnFloor = this;
PlayerController.inst.OnPlayerMove += Interact;
}
......
......@@ -66,6 +66,7 @@ public class Mannequin : MonoBehaviour, IObject, IBulletInteractor
public void Init(Floor floor)
{
this.floor = floor;
floor.objOnFloor = this;
transform.Rotate(new Vector3(0, Random.Range(0, 4) * 90, 0));
}
......
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